#37151: Add support for squashing across AddIndex, AddConstraint, and
AlterConstraint
-------------------------------------+-------------------------------------
Reporter: Markus Holtermann | Owner: Markus
| Holtermann
Type: New feature | Status: assigned
Component: Migrations | Version: 6.0
Severity: Normal | Resolution:
Keywords: migrations | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* needs_better_patch: 0 => 1
Comment:
Left some comments on the MR.
We either need to drop the `references_field` optimization or implement it
in a way that caters for all potential field references. The proposed
changes disable the optimization in the presence of `.expressions` but it
needs to do so when `.include` and `.condition` are present (or check them
as well) and consider that `.fields` can contain descending order
specifiers (e.g. `Index(fields=['-pub_date'])`).
--
Ticket URL: <https://code.djangoproject.com/ticket/37151#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 visit
https://groups.google.com/d/msgid/django-updates/0107019ead2d3c6b-1f677248-929c-4377-8cf4-f3c19cfe7e63-000000%40eu-central-1.amazonses.com.