mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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:
parent
4074fa9145
commit
82ce55dbbe
3 changed files with 18 additions and 1 deletions
|
@ -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`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue