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:
committed by
Mariusz Felisiak
parent
a098cde968
commit
97f124f39e
@@ -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
|
||||
~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user