1
0
mirror of https://github.com/django/django.git synced 2025-10-31 01:25:32 +00:00

[1.10.x] Fixed #27558 -- Prevented redundant index on InnoDB ForeignKey.

The MySQL backend overrides _field_should_be_indexed() so that it skips
index creation for ForeignKeys when using InnoDB.
This commit is contained in:
Ed Morley
2016-12-01 15:54:58 +00:00
committed by Tim Graham
parent 4074fa9145
commit 82ce55dbbe
3 changed files with 18 additions and 1 deletions

View File

@@ -26,3 +26,6 @@ Bugfixes
* Prevented ``LocaleMiddleware`` from redirecting on URLs that should return
404 when using ``prefix_default_language=False`` (:ticket:`27402`).
* Prevented an unnecessary index from being created on an InnoDB ``ForeignKey``
when the field was added after the model was created (:ticket:`27558`).