Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implements switch to abort a migration on an error #991

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bjoernHeneka
Copy link

I'm using the propel migration within an automated rollout process. Problem is that if within a migration file are more than 1 statement,

SET FOREIGN_KEY_CHECKS = 0; 
SQL with error
SET FOREIGN_KEY_CHECKS = 1;

The phing tasks continues migrating. With the change i pushed you can set a configuration flag

propel.migration.abortOnError = false|true

if set to true the migration aborts with this task. If false it behaves as now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant