#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: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* stage: Unreviewed => Accepted
Comment:
I'm surprised to see that when we added `IndexOperation` and friends we
didn't realize that `AlterTogetherOptionOperation` and friends were
subclassing `ModelOptionOperation` for its `.reduce` operation (which
make us of `references_model` to implement what you're after here).
This ticket seems to be about implementing model reference awareness but
we could also implement field reference awareness (`references_field`) not
that we have the machinery to extra field references from expressions (see
`Index.check` for example).
--
Ticket URL: <https://code.djangoproject.com/ticket/37151#comment:2>
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/0107019eac5dec40-a16e624c-1cce-45b6-8f21-f6c545374e7d-000000%40eu-central-1.amazonses.com.