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

Fixed #28052 -- Prevented dropping Meta.indexes when changing db_index to False.

Thanks Marc Tamlyn for the report and Ian Foote/Tim Graham for review.
This commit is contained in:
Markus Holtermann
2017-04-07 15:54:40 +02:00
committed by Tim Graham
parent 63afe3a2bf
commit 663e48947f
4 changed files with 68 additions and 6 deletions

View File

@@ -72,3 +72,6 @@ Bugfixes
* Prevented ``AddIndex`` and ``RemoveIndex`` from mutating model state
(:ticket:`28043`).
* Prevented migrations from dropping database indexes from ``Meta.indexes``
when changing ``Field.db_index`` to ``False`` (:ticket:`28052`).