diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-11-25 12:28:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-25 12:28:41 +0100 |
commit | ceff312db8354049d97c2a84889cd7f56d37fd99 (patch) | |
tree | da86b7c571676f5d3b600d4b20963be611351528 /Makefile | |
parent | f818f64145fa929c399277b665a84a87f31bbacd (diff) | |
parent | f4e7a0df0e5917c51889f95e049eda2f81a8416e (diff) | |
download | wallabag-ceff312db8354049d97c2a84889cd7f56d37fd99.tar.gz wallabag-ceff312db8354049d97c2a84889cd7f56d37fd99.tar.zst wallabag-ceff312db8354049d97c2a84889cd7f56d37fd99.zip |
Merge pull request #3401 from aaa2000/migration-initial
Add an initial doctrine migration
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -30,18 +30,7 @@ ifdef DB | |||
30 | endif | 30 | endif |
31 | -php bin/console doctrine:database:drop --force --env=test | 31 | -php bin/console doctrine:database:drop --force --env=test |
32 | php bin/console doctrine:database:create --env=test | 32 | php bin/console doctrine:database:create --env=test |
33 | ifndef DB ## make test does not define DB | 33 | php bin/console doctrine:migrations:migrate --no-interaction --env=test |
34 | php bin/console doctrine:schema:create --env=test | ||
35 | endif | ||
36 | ifeq ($(DB), sqlite) | ||
37 | php bin/console doctrine:schema:create --env=test | ||
38 | endif | ||
39 | ifeq ($(DB), mysql) | ||
40 | php bin/console doctrine:database:import data/sql/mysql_base.sql --env=test | ||
41 | endif | ||
42 | ifeq ($(DB), pgsql) | ||
43 | psql -h localhost -d wallabag_test -U travis -f data/sql/pgsql_base.sql | ||
44 | endif | ||
45 | 34 | ||
46 | fixtures: ## Load fixtures into database | 35 | fixtures: ## Load fixtures into database |
47 | php bin/console doctrine:fixtures:load --no-interaction --env=test | 36 | php bin/console doctrine:fixtures:load --no-interaction --env=test |