diff options
| author | David Wobrock <david.wobrock@gmail.com> | 2022-05-03 14:43:06 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-16 17:46:24 +0200 |
| commit | c6cec3c2d287b5d2bd36d9c3002712ae89b5ab17 (patch) | |
| tree | fb370652afdf7d742e39447324ed22f38e87eb58 /docs | |
| parent | 11310e9abbdd784aea4ba50451144fc9c239f71f (diff) | |
Refs #27064 -- Made migrations generate RenameIndex operations when renaming Meta.indexes.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/4.1.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt index dc95a653c3..7c9f1beca6 100644 --- a/docs/releases/4.1.txt +++ b/docs/releases/4.1.txt @@ -350,6 +350,11 @@ Migrations :attr:`Meta.indexes <django.db.models.Options.indexes>` or :attr:`~django.db.models.Options.index_together` options. +* The migrations autodetector now generates + :class:`~django.db.migrations.operations.RenameIndex` operations instead of + ``RemoveIndex`` and ``AddIndex``, when renaming indexes defined in the + :attr:`Meta.indexes <django.db.models.Options.indexes>`. + Models ~~~~~~ |
