Opened 19 months ago
Last modified 10 months ago
#34534 closed Cleanup/optimization
Migration operation optimisations — at Initial Version
Reported by: | David Sanders | Owned by: | nobody |
---|---|---|---|
Component: | Migrations | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | bcail | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
From https://github.com/django/django/pull/16819#issuecomment-1529913703
- RenameIndex can be reduced into CreateIndex
- DropConstraint can be reduced into CreateConstraint
- A question was raised whether constraints could be reduced into create model though some databases do not support deferrable constraints (eg MySQL)
- It's worth going over the operations to see if there are any other potential reductions to add
Note:
See TracTickets
for help on using tickets.