Changes between Initial Version and Version 1 of Ticket #37286, comment 2
- Timestamp:
- Aug 19, 2026, 7:10:52 AM (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37286, comment 2
initial v1 1 1 I reproduced this on current `main` using MySQL 8.4. 2 3 This does not appear to be a regression, so I did not run `git bisect`. 4 The affected `db_index` removal logic predates support for 5 `UniqueConstraint` in `Meta.constraints`, introduced in Django 2.2 by 6 commit db13bca60a. The removal logic did not account for these constraints 7 when that feature was introduced. 8 9 Therefore, the issue appears to have existed since this model configuration 10 first became supported rather than being caused by a later behavioral 11 regression. 2 12 3 13 A schema-editor regression test creates both a field index and a same-column named `UniqueConstraint`, then removes `db_index`.