#24828: AlterUniqueTogether prevents squashmigrations optimizations
-------------------------------+--------------------
     Reporter:  riklaunim      |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Migrations     |    Version:  1.8
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 I have a model that has a AlterUniqueTogether so in initial migration
 after CreateModel there was a AlterUniqueTogether operation. After that I
 got some migrations that add/alter/remove some fields to that model (but
 not those in AlterUniqueTogether). squashmigrations couldn't optimize
 those additional operations into one CreateModel operation. When I moved
 AlterUniqueTogether to the end of the squash operations list and
 resquashed then it did that. (Django 1.8.1)

--
Ticket URL: <https://code.djangoproject.com/ticket/24828>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.3f9fd7a20a5470157a35b72006e28077%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to