Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:masterfrom
gms8994:master
Dec 8, 2017
Merged

[5.6] Makes multiple calls to specific DDLs throw an Exception in SQLite#22364
taylorotwell merged 1 commit into
laravel:masterfrom
gms8994:master

Conversation

@gms8994

@gms8994 gms8994 commented Dec 8, 2017

Copy link
Copy Markdown
Contributor

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