From ed5f1748d8178ab7a1222ae27675d742acdb1382 Mon Sep 17 00:00:00 2001 From: Guillaume Lesniak Date: Mon, 12 Sep 2016 09:49:57 +0200 Subject: [PATCH] scripts: Add separate script for DB upgrade --- scripts/upgrade-db.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scripts/upgrade-db.sh diff --git a/scripts/upgrade-db.sh b/scripts/upgrade-db.sh new file mode 100644 index 0000000..90edf87 --- /dev/null +++ b/scripts/upgrade-db.sh @@ -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