diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-05-03 13:06:19 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-05-03 13:09:49 +0200 |
| commit | 290fd5ecece400490ad6bb557720d3b76f647eaf (patch) | |
| tree | aa48ff5a54e5b3ae3ae77e885dc1f328bc81d71c /docs/releases/4.2.1.txt | |
| parent | 4c68482c3ebe07c598edc4fa4e1796c7c773d768 (diff) | |
[4.2.x] Fixed #34529, Refs #34525 -- Reduced index operations with Meta.indexes/index_together when optimizing migrations.
This makes squashing migrations an available path for changing
Meta.index_together, which is deprecated, to Meta.indexes.
Follow up to f81032572107846922745b68d5b7191058fdd5f5.
Backport of 8e2460d599aec95f8cfe514d3cc8acdd4ca4b1fb from main.
Diffstat (limited to 'docs/releases/4.2.1.txt')
| -rw-r--r-- | docs/releases/4.2.1.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/4.2.1.txt b/docs/releases/4.2.1.txt index a1130effe8..bed64f6ad1 100644 --- a/docs/releases/4.2.1.txt +++ b/docs/releases/4.2.1.txt @@ -53,3 +53,8 @@ Bugfixes * Fixed a regression in Django 4.2 where breadcrumbs didn't appear on admin site app index views (:ticket:`34512`). + +* Made squashing migrations reduce ``AddIndex``, ``RemoveIndex``, + ``RenameIndex``, and ``CreateModel`` operations which allows removing a + deprecated ``Meta.index_together`` option from historical migrations and use + ``Meta.indexes`` instead (:ticket:`34525`). |
