#35704: AddIndexConcurrently + RenameIndex incorrectly reduces to AddIndex
----------------------------------------+------------------------------
Reporter: Adam Johnson | Owner: Adam Johnson
Type: Bug | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
----------------------------------------+------------------------------
A migration with `AddIndexConcurrently` and `RenameIndex` for the same
index will turn into an `AddIndex`. This means that, for example,
`optimizemigration` can change a migration to use extra locking, which may
be unsafe.
(Discovered after working on some other missing optimizations in #35700.)
--
Ticket URL: <
https://code.djangoproject.com/ticket/35704>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.