-
-
Notifications
You must be signed in to change notification settings - Fork 788
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
Error during CLI migration not returning exitcode 1 as expected #180
Comments
@MatthewDaize I think this is because In this case the migrations should not be run with |
This is not the right behavior! |
Unfortunately, it still does not work! |
Re-opening issue as requested by @rumours86 |
|
How can I run "php yii_test migrate" so that they return the exitcode=1 in case of an error? |
Yii Migration Tool (based on Yii v2.0.17) |
wrote bash script
|
wrote in yii_test
|
Is there an adequate solution to this problem? |
@Blacknife not yet. |
If you're running yii >= 2.0.36, you can configure this in console config like the following:
(see https://www.yiiframework.com/doc/api/2.0/yii-console-controller#$silentExitOnException-detail ) |
What steps will reproduce the problem?
migration up
after a partially complete migration due to an error (eg. table already exists)echo $?
What's expected?
Exitcode should be 1
What do you get instead?
Exitcode returned at 0
Additional info
This was discovered when using a sqlite database during our local testing process using the following shell script:
Other detailed information and stuff:
The text was updated successfully, but these errors were encountered: