Skip to content

Test and fix for unique index lost when renaming M2M field (#86) #88

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 3 commits into from
Jan 25, 2022

Conversation

sparrowt
Copy link
Contributor

@sparrowt sparrowt commented Jan 17, 2022

Easiest to review as separate commits:

  1. (fix up ambiguous #NN issue references in other tests which are no longer meaningful since the fork)
  2. add a test which fails due to issue Unique index lost when renaming a ManyToManyField #86
  3. proposed fix for Unique index lost when renaming a ManyToManyField #86

Add absolute links in place of #NN which are no longer
valid in this repo.
@sparrowt sparrowt force-pushed the test-m2m-field-rename branch from ae4458d to d6d1e4a Compare January 24, 2022 14:32
This method override was added by:
ESSolutions/django-mssql-backend@08c2721
meaning that it dropped (but did not re-instate) any unique
index on the M2M through table, before renaming that table.

However MSSQL does not seem to require this, so rather
than trying to re-create the correct indexes afterwards
just don't drop them unnecessarily in the first place.
@sparrowt sparrowt changed the title TDD: test which fails due to mssql-django issue 86 Test and fix for unique index lost when renaming M2M field (#86) Jan 24, 2022
@absci absci merged commit 853f5b5 into microsoft:dev Jan 25, 2022
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