docker-php
docker-php copied to clipboard
Fix: case migration failed
Steps To Reproduce
- Set AUTORUN_ENABLED="true".
- Write a Laravel migration that can fail.
- Deploy the application. The migration will fail, but the deployment will succeed. In such case, code changes will be deployed, but schema changes will not, which may break the application state.
Outcome
What did you expect? Deployment should be rollbacked or should not succeed when migration fails
What happened instead? Code changes deployed / Deployment succeeded
Affected Docker Images
I guess most of the images if people are using it for Laravel application with AUTORUN_ENABLED="true" option.
This PR fixes https://github.com/serversideup/docker-php/issues/477