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

[5.6] Makes multiple calls to specific DDLs throw an Exception in SQLite #22364

Merged
merged 1 commit into from
Dec 8, 2017
Merged

Conversation

gms8994
Copy link
Contributor

@gms8994 gms8994 commented Dec 8, 2017

After spending almost 2 hours trying to determine why my down closure was failing to remove four columns from an SQLite database, I tracked down #15042, which states that this is a limitation.

This PR checks to see if we're on a SQLite connection and checks how many of the commands supplied are dropColumn or renameColumn, and if there's more than 1, it throws a BadMethodCallException to alert the user to this fact.

@taylorotwell taylorotwell merged commit 8ef2fce into laravel:master Dec 8, 2017
@GrahamCampbell GrahamCampbell changed the title Makes multiple calls to specific DDLs throw an Exception in SQLite [5.6] Makes multiple calls to specific DDLs throw an Exception in SQLite Dec 9, 2017
@gms8994 gms8994 deleted the master branch December 11, 2017 17:10
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