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:
		| @@ -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`). | ||||
|   | ||||
		Reference in New Issue
	
	Block a user