Skip to content

implements switch to abort a migration on an error - #991

Open
bjoernHeneka wants to merge 1 commit into
propelorm:masterfrom
bjoernHeneka:exit-on-error
Open

implements switch to abort a migration on an error#991
bjoernHeneka wants to merge 1 commit into
propelorm:masterfrom
bjoernHeneka:exit-on-error

Conversation

@bjoernHeneka

Copy link
Copy Markdown

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