1
0
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:
David Wobrock
2022-05-03 14:43:06 +02:00
committed by Mariusz Felisiak
parent 11310e9abb
commit c6cec3c2d2
3 changed files with 85 additions and 4 deletions

View File

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