mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #27064 -- Made migrations generate RenameIndex operations when renaming Meta.indexes.
This commit is contained in:
committed by
Mariusz Felisiak
parent
11310e9abb
commit
c6cec3c2d2
@@ -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
|
||||
~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user