#28862: Removing a field from index_together/unique_together and from the model
generates a migration that crashes
-----------------------------------+------------------------------------
     Reporter:  Artem Maslovskiy   |                    Owner:  Jeff
         Type:  Bug                |                   Status:  closed
    Component:  Migrations         |                  Version:  1.9
     Severity:  Normal             |               Resolution:  fixed
     Keywords:  models migrations  |             Triage Stage:  Accepted
    Has patch:  1                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"ed7898e1b58c29cda648a799ac4bd5bc7e193b8b" ed7898e1]:
 {{{
 #!CommitTicketReference repository=""
 revision="ed7898e1b58c29cda648a799ac4bd5bc7e193b8b"
 Fixed #28862 -- Disabled optimization of AlterFooTogether and RemoveField.

 AlterFooTogether operations cannot be swapped with RemoveField operations
 on
 the same model as they could be removing the the same field as well.

 Since AlterFooTogether operations don't track what their previous value
 was,
 it's impossible to determine whether or not the optimization is safe so
 the
 only way to proceed is to disable the optimization.

 Thanks Ramiro Morales for the in-depth analysis of the issue.

 Refs #24828
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28862#comment:27>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.4454c25285c1f0ab3a5cbf5ce67e8894%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to