-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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.5] Fix missing table prefix in SQLiteGrammar compileDropColumn() #22745
[5.5] Fix missing table prefix in SQLiteGrammar compileDropColumn() #22745
Conversation
Don't change so many tests for this. Just write one new test with a new grammar for this functionality. |
Also; this is a change in behavior and should probably target the 5.6 release and be part of the list of upgrade notes. |
This prefix issue might affect any single compile instruction as they are individually responsible for calling I've created a |
Absolutely, the prefix should be used in this case. However, existing migrations are already written with workarounds where people have hardcoded the prefix. I think it's too much to ask to have people go back and change their existing migrations in the middle of the 5.5 release. It would be easier to ask that in the 5.6 upgrade guide. |
Sorry to go around about the tests but really I would just write a Integration test that creates a :memory: sqlite table and creates a table with a prefix and verifies it was created with the prefix. |
@sisve Well, to me it seems that
So, in these situations
Image a situation in which one uses a main database without prefix and a test database that is prefixed with 'test_'. |
@taylorotwell I've rewritten the test to use an actual |
How is this test testing anything? I don't see any |
@victorlap ... and that test shows that there is a prefixing issue in |
Fixes #22741