scripts: Add DB seed script

remotes/origin/master
Guillaume Lesniak 2016-09-12 09:57:05 +02:00
parent ed5f1748d8
commit df26e54c3b
2 changed files with 14 additions and 0 deletions

14
scripts/seed-db.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
if [ -d module/MonarcCore ]; then
php ./vendor/bin/phinx seed:run -c ./module/MonarcCore/migrations/phinx.php
fi
if [ -d module/MonarcBO ]; then
php ./vendor/bin/phinx seed:run -c ./module/MonarcBO/migrations/phinx.php
fi
if [ -d module/MonarcFO ]; then
php ./vendor/bin/phinx seed:run -c ./module/MonarcFO/migrations/phinx.php
fi

0
scripts/upgrade-db.sh Normal file → Executable file
View File