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

[8.x] Improve pretend run Doctrine failure message #37879

Merged
merged 2 commits into from
Jul 1, 2021

Conversation

driesvints
Copy link
Member

This PR adds a failure message when trying to pretend queries in a migration while a ->change() call is present. This isn't supported and atm leads to an exception. Catching this exception and providing a clear message will improve usabilty.

I don't think there's a real solution to the underlying issue so this is the least we can do atm.

Fixes #36629

@taylorotwell taylorotwell merged commit 6a3ddf2 into 8.x Jul 1, 2021
@taylorotwell taylorotwell deleted the improve-pretend-run-failure-message branch July 1, 2021 17:07
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.

php artisan migrate --pretend not working on ChangeColumn
2 participants