diff --git a/build.xml b/build.xml index 253c9ee..901b16c 100644 --- a/build.xml +++ b/build.xml @@ -97,7 +97,8 @@ - + + /tmp/conf.tmp.php array( - 'migrations' => 'vendor/monarc/backoffice/migrations/db', - 'seeds' => 'vendor/monarc/backoffice/migrations/seeds', + 'migrations' => 'vendor/monarc/$MODULE/migrations/db', + 'seeds' => 'vendor/monarc/$MODULE/migrations/seeds', ), 'environments' => array( 'default_migration_table' => 'phinxlog', diff --git a/scripts/upgrade-db.sh b/scripts/upgrade-db.sh index 69943a1..90edf87 100755 --- a/scripts/upgrade-db.sh +++ b/scripts/upgrade-db.sh @@ -1,4 +1,11 @@ #!/bin/bash -php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./vendor/monarc/core/migrations/phinx.php -php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./vendor/monarc/backoffice/migrations/phinx.php \ No newline at end of file +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