From 4acfcb4cd115da5a80d26dbf49c0e1e16ccadae7 Mon Sep 17 00:00:00 2001 From: Guillaume Lesniak Date: Thu, 2 Jun 2016 12:16:03 +0200 Subject: [PATCH] Update update-all with phinx migrations --- config/autoload/local.php.dist | 9 +++++++++ scripts/update-all.sh | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index 6927e3c..0ed1558 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -32,4 +32,13 @@ return array( ), ), ), + + + 'languages' => [ + 1 => 'Français', + 2 => 'English', + 3 => 'Deutsch' + ], + + 'defaultLanguageIndex' => 1 ); diff --git a/scripts/update-all.sh b/scripts/update-all.sh index cac0791..4298e9b 100755 --- a/scripts/update-all.sh +++ b/scripts/update-all.sh @@ -11,12 +11,16 @@ pull_if_exists() { git pull -php composer.phar update +php composer.phar update -o + pull_if_exists module/MonarcCore pull_if_exists module/MonarcBO pull_if_exists node_modules/ng_backoffice +php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/MonarcCore/migrations/phinx.php +php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/MonarcBO/migrations/phinx.php + if [ -d node_modules/ng_backoffice ]; then cd node_modules/ng_backoffice npm install