#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
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"7c2d4d943b2905a8cfbb2d2f6c6fa15983b23ff1" 7c2d4d94]:
 {{{
 #!CommitTicketReference repository=""
 revision="7c2d4d943b2905a8cfbb2d2f6c6fa15983b23ff1"
 [4.0.x] 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.
 Backport of e972620ada4f9ed7bc57f28e133e85c85b0a7b20 from main
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33462#comment:7>
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.4574b8f94de2feedabd492afaf25a461%40djangoproject.com.

Reply via email to