working on setup
parent
6cb44645ae
commit
29b6c971e3
|
@ -97,7 +97,8 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="db-migration" description="Update the database version">
|
<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>
|
||||||
|
|
||||||
<target name="reset-db"
|
<target name="reset-db"
|
||||||
|
|
|
@ -13,8 +13,8 @@ cat <<EOF >/tmp/conf.tmp.php
|
||||||
<?php
|
<?php
|
||||||
return array(
|
return array(
|
||||||
'paths' => array(
|
'paths' => array(
|
||||||
'migrations' => 'vendor/monarc/backoffice/migrations/db',
|
'migrations' => 'vendor/monarc/$MODULE/migrations/db',
|
||||||
'seeds' => 'vendor/monarc/backoffice/migrations/seeds',
|
'seeds' => 'vendor/monarc/$MODULE/migrations/seeds',
|
||||||
),
|
),
|
||||||
'environments' => array(
|
'environments' => array(
|
||||||
'default_migration_table' => 'phinxlog',
|
'default_migration_table' => 'phinxlog',
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./vendor/monarc/core/migrations/phinx.php
|
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/MonarcCore/migrations/phinx.php
|
||||||
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./vendor/monarc/backoffice/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
|
||||||
|
|
Loading…
Reference in New Issue