summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDavid Wobrock <david.wobrock@gmail.com>2022-05-04 16:03:09 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-05-17 07:21:36 +0200
commit97f124f39e363bf518fbe428320bdee63d56f8e0 (patch)
treec712856f3477d20403d70a074ef564162bc106f1 /docs
parenta098cde9683a560bfc4b22f9b2581cf8cedc7dab (diff)
Refs #27064 -- Made migrations generate RenameIndex operations when moving indexes from index_together to Meta.indexes.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/4.1.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt
index 7c9f1beca6..bd8af7d51c 100644
--- a/docs/releases/4.1.txt
+++ b/docs/releases/4.1.txt
@@ -355,6 +355,12 @@ Migrations
``RemoveIndex`` and ``AddIndex``, when renaming indexes defined in the
:attr:`Meta.indexes <django.db.models.Options.indexes>`.
+* The migrations autodetector now generates
+ :class:`~django.db.migrations.operations.RenameIndex` operations instead of
+ ``AlterIndexTogether`` and ``AddIndex``, when moving indexes defined in the
+ :attr:`Meta.index_together <django.db.models.Options.index_together>` to the
+ :attr:`Meta.indexes <django.db.models.Options.indexes>`.
+
Models
~~~~~~