docker-php icon indicating copy to clipboard operation
docker-php copied to clipboard

Deployment succeeds when migration fails

Open aagjalpankaj opened this issue 1 year ago • 0 comments

Steps To Reproduce

  1. Set AUTORUN_ENABLED="true".
  2. Write a Laravel migration that can fail.
  3. 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.

Anything else?

No response

aagjalpankaj avatar Oct 19 '24 16:10 aagjalpankaj