Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Enhancement: Use doctrine/migrations to modify the database schema #502

Merged
merged 11 commits into from
Oct 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ install:
before_script:
- cp config/autoload/travis.php.local.dist config/autoload/travis.local.php
- mysql -uroot -e 'create database modules_test;'
- mysql -uroot modules_test < data/sql/0.sql
- php public/index.php migrations:migrate --no-interaction --verbose

script:
- vendor/bin/php-cs-fixer fix --config-file=./.php_cs --dry-run --diff -v
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ test: composer
cp config/autoload/travis.php.local.dist config/autoload/travis.local.php
mysql -uroot -e 'DROP DATABASE IF EXISTS modules_test;'
mysql -uroot -e 'CREATE DATABASE modules_test;'
mysql -uroot modules_test < data/sql/0.sql
php public/index.php migrations:migrate --no-interaction --verbose
vendor/bin/phpunit --configuration phpunit.xml
rm config/autoload/travis.local.php
7 changes: 6 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
<exec logoutput="true" checkreturn="true" command="ssh ${ssh.user}@${ssh.host} -p ${ssh.port} 'cd ${project.root}; composer install --no-dev'" />
</target>

<target name="deploy" description="Deploys application to production" depends="git-reset, git-pull, composer-install">
<target hidden="true" name="doctrine-migration">
<echo message="Runs Doctrine migrations" />
<exec logoutput="true" checkreturn="true" command="ssh ${ssh.user}@${ssh.host} -p ${ssh.port} 'cd ${project.root}; php public/index.php migrations:migrate --no-interaction --verbose'" />
</target>

<target name="deploy" description="Deploys application to production" depends="git-reset, git-pull, composer-install, doctrine-migration">
<echo message="Successfully deployed to production" />
</target>
</project>
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
"license": "BSD-3-Clause",
"homepage": "https://zfmodules.com",
"require": {
"evandotpro/edp-github": "0.2.*",
"php": "~5.5",
"ext-intl": "*",
"doctrine/doctrine-module": "^0.9.0",
"doctrine/doctrine-orm-module": "^0.9.1",
"doctrine/migrations": "^1.1",
"evandotpro/edp-github": "0.2.*",
"ezyang/htmlpurifier": "4.6.*",
"monolog/monolog": "~1.12",
"phing/phing": "~2.10",
"php": "~5.5",
"socalnick/scn-social-auth": "1.14.1",
"zendframework/zendframework": "~2.3.0",
"zf-commons/zfc-user": "1.0.*",
Expand Down
Loading