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

Failed migrations should not return exit code 0 #215

Closed
1 of 3 tasks
steinkel opened this issue Apr 11, 2016 · 2 comments
Closed
1 of 3 tasks

Failed migrations should not return exit code 0 #215

steinkel opened this issue Apr 11, 2016 · 2 comments
Labels
Milestone

Comments

@steinkel
Copy link
Member

This is a (multiple allowed):

  • bug
  • enhancement
  • feature-discussion (RFC)
  • CakePHP Version: 3.2.3
  • Migrations plugin version: 1.5.7
  • Bake plugin version (if relevant): not relevant
  • Database server (MySQL, SQLite, Postgres): not relevant
  • PHP Version: PHP 5.6.11-1ubuntu3.1
  • Platform / OS: Ubuntu 15.10

What you did

Run a migration getting an exception while deploying the application, the deploy script continued because the exit code returned by migrations was 0

Expected Behavior

Failed migrations (exception) should return exit code != 0

Actual Behavior

Failed migrations (exception) return exit code === 0

@dereuromark dereuromark added this to the 1.5.8 milestone Apr 11, 2016
@thinkingmedia
Copy link

This issue exists for seeding as well.

@HavokInspiration
Copy link
Member

HavokInspiration commented May 20, 2016

@thinkingmedia That is normal since migrating and seeding operations go through the same shell class.

PR #224 opened.

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

No branches or pull requests

4 participants