-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Fix KeyError when deleting a field with unqiue=True #365
base: dev
Are you sure you want to change the base?
Conversation
@gck123 can you please add a test exposing the issue? |
Adding these snippets to the specified places and then executing tests.test_migrate.test_migrate will reproduce the KeyError tests.models add model Tasks
tests.old_models add model Tasks
tests.test_migrate replace old_models_describe
|
When the KeyError is fixed, there is another problem about the unique index deletion failure, this problem will only be reported by the database when the migration sql is executed, this problem is caused by the unique index name prefix idx_ and uid_ in the sql is messed up. |
@gck123 thank you for the snippet but it would be great if the PR updated the tests to include the test for this issue. Otherwise, it might come back as a regression. |
@henadzit Cloud you review it? |
Fixes #364