Skip to content

[1.x] Improve migration errors to guide developers with unsupported drivers #233

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

Merged
merged 4 commits into from
Dec 14, 2023

Conversation

timacdonald
Copy link
Member

@timacdonald timacdonald commented Dec 14, 2023

phpunit + sqlite + PULSE_ENABLED=false

Database migrations are ignored ✅

Screenshot 2023-12-15 at 9 59 04 am

phpunit + sqlite + PULSE_ENABLED=true

Throws an exception pointing developer to disable pulse if they want to.

Screenshot 2023-12-15 at 9 50 29 am

artisan migrate + sqlite + PULSE_ENABLED=true

Throws an exception indicating that the DB is not supported.

Screenshot 2023-12-15 at 9 57 52 am

artisan migration + sqlite + PULSE_ENABLED=false

Throws an exception indicating that the DB is not supported. This is important because we don't want to record in the migrations table that the migration has been run, because enabling pulse later will not work.

Screenshot 2023-12-15 at 9 58 27 am

@timacdonald timacdonald force-pushed the migrations branch 7 times, most recently from 7dca36e to 56f917c Compare December 14, 2023 22:45
@timacdonald timacdonald marked this pull request as ready for review December 14, 2023 23:01
@timacdonald
Copy link
Member Author

I think we should revert laravel/laravel@4705136 after this is merged, but again, not a hill I'm gonna die on.

@taylorotwell taylorotwell merged commit 7cf1593 into 1.x Dec 14, 2023
@taylorotwell taylorotwell deleted the migrations branch December 14, 2023 23:31
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.

2 participants