working on setup

remotes/origin/master
ppaulis 2016-10-06 17:07:20 +02:00
parent 6cb44645ae
commit 29b6c971e3
3 changed files with 13 additions and 5 deletions

View File

@ -97,7 +97,8 @@
</target>
<target name="db-migration" description="Update the database version">
<exec command="${project.basedir}/scripts/client-upgrade-db.sh MonarcBO localhost preproddev preproddev master" passthru="true"/>
<exec command="${project.basedir}/scripts/client-upgrade-db.sh backoffice ${db.host} ${db.username} ${db.password} ${db.name}" passthru="true"/>
<exec command="${project.basedir}/scripts/client-upgrade-db.sh core ${db.host} ${db.username} ${db.password} ${db.name}" passthru="true"/>
</target>
<target name="reset-db"

View File

@ -13,8 +13,8 @@ cat <<EOF >/tmp/conf.tmp.php
<?php
return array(
'paths' => 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',

View File

@ -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
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