mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Truncate groups and user table manually for travis.
This commit is contained in:
parent
e6f003b3b2
commit
1e74f205e9
1 changed files with 2 additions and 4 deletions
|
@ -17,11 +17,9 @@ php:
|
||||||
install:
|
install:
|
||||||
- composer install
|
- composer install
|
||||||
- php bin/console --env test doctrine:database:create --if-not-exists -n
|
- php bin/console --env test doctrine:database:create --if-not-exists -n
|
||||||
# Migration is just for testing if it work, it is overwritten immediately
|
|
||||||
- php bin/console --env test doctrine:migrations:migrate -n
|
- php bin/console --env test doctrine:migrations:migrate -n
|
||||||
# Load fixtures (workaround https://github.com/doctrine/DoctrineFixturesBundle/issues/50)
|
# Load fixtures (we have to truncate database by ourselves or we get foreing key valiation errors
|
||||||
- php bin/console --env test doctrine:schema:drop --force
|
- php bin/console --env test doctrine:query:sql "SET foreign_key_checks = 0; TRUNCATE `groups`; TRUNCATE `users`;"
|
||||||
- php bin/console --env test doctrine:schema:update --force
|
|
||||||
- php bin/console --env test doctrine:fixtures:load -n
|
- php bin/console --env test doctrine:fixtures:load -n
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue