aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authoradev <adev2000@gmail.com>2017-11-03 00:41:47 +0100
committeradev <adev2000@gmail.com>2017-11-21 21:35:16 +0100
commit18fb777b89c6cca529979ab1202eb1af5458bd5d (patch)
tree8a02c448d99701b579126c829108cbfc05518826 /Makefile
parentd3d0defabc8224172b59c85db66c2d4e6bc3f06b (diff)
downloadwallabag-18fb777b89c6cca529979ab1202eb1af5458bd5d.tar.gz
wallabag-18fb777b89c6cca529979ab1202eb1af5458bd5d.tar.zst
wallabag-18fb777b89c6cca529979ab1202eb1af5458bd5d.zip
Add an initial migration
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile13
1 files changed, 1 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 9e44edc6..0686454f 100755
--- a/Makefile
+++ b/Makefile
@@ -30,18 +30,7 @@ ifdef DB
30endif 30endif
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
33ifndef 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
35endif
36ifeq ($(DB), sqlite)
37 php bin/console doctrine:schema:create --env=test
38endif
39ifeq ($(DB), mysql)
40 php bin/console doctrine:database:import data/sql/mysql_base.sql --env=test
41endif
42ifeq ($(DB), pgsql)
43 psql -h localhost -d wallabag_test -U travis -f data/sql/pgsql_base.sql
44endif
45 34
46fixtures: ## Load fixtures into database 35fixtures: ## 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