#33462: Altering type of referenced primary key with MTI causes duplicated
operations.
-------------------------------------+-------------------------------------
Reporter: bcail | Owner: Mariusz
| Felisiak
Type: Bug | Status: closed
Component: Migrations | Version: 4.0
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"e972620ada4f9ed7bc57f28e133e85c85b0a7b20" e972620a]:
{{{
#!CommitTicketReference repository=""
revision="e972620ada4f9ed7bc57f28e133e85c85b0a7b20"
Fixed #33462 -- Fixed migration crash when altering type of primary key
with MTI and foreign key.
This prevents duplicated operations when altering type of primary key
with MTI and foreign key. Previously, a foreign key to the base model
was added twice, once directly and once by the inheritance model.
Thanks bcail for the report.
Regression in 325d7710ce9f6155bb55610ad6b4580d31263557.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33462#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.db3d526a931aacec74927a72935c7423%40djangoproject.com.