#31317: Migration using CreateModel with unique_together followed by
AlterUniqueTogether crashes
-------------------------------------+-------------------------------------
     Reporter:  Adam (Chainz)        |                    Owner:  nobody
  Johnson                            |
         Type:  Bug                  |                   Status:  new
    Component:  Migrations           |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Adam (Chainz) Johnson):

 An alternative would be to translate `unique_together = [['a']]` into an
 extra constraint in `constraints`` and then it can be treated by
 migrations as `AddConstraint` / `RemoveConstraint` operations. Though that
 might mean more work.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31317#comment:4>
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/068.61b14e31e23979a92ba3f46bac3877fa%40djangoproject.com.

Reply via email to