scripts: Add separate script for DB upgrade

pull/1/head
Guillaume Lesniak 2016-09-12 09:49:57 +02:00
parent f29fe178ca
commit ed5f1748d8
1 changed files with 11 additions and 0 deletions

11
scripts/upgrade-db.sh Normal file
View File

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