1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #27064 -- Made migrations generate RenameIndex operations when moving indexes from index_together to Meta.indexes.

This commit is contained in:
David Wobrock
2022-05-04 16:03:09 +02:00
committed by Mariusz Felisiak
parent a098cde968
commit 97f124f39e
3 changed files with 126 additions and 0 deletions

View File

@@ -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
~~~~~~