#34964: Reversing the order of Q objects in a CheckConstraint generates a 
migration
-------------------------------------+-------------------------------------
               Reporter:  Jacob      |          Owner:  Jacob Walls
  Walls                              |
                   Type:             |         Status:  assigned
  Cleanup/optimization               |
              Component:             |        Version:  dev
  Migrations                         |
               Severity:  Normal     |       Keywords:  noop
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Changing `Q(A) & Q(B)` to `Q(B) & Q(A)` (or `Q(B, A)`) generates a
 migration that drops and recreates the exact same constraint.

 Suggesting to build on the work in #34744 to adjust the identity property
 for Q objects to use a deterministic sort, given that `^`, `&`, and `|`
 operations are commutative.

 [https://github.com/django/django/pull/17466 PR]

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34964>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018bbf0519ff-4cdd224a-5fda-448e-9d68-bee0a8d7919a-000000%40eu-central-1.amazonses.com.

Reply via email to