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

Fixed #29193 -- Prevented unnecessary foreign key drops when altering a unique field.

Stopped dropping and recreating foreign key constraints on other fields
in the same table as the one which is actually being altered in an
AlterField operation.

Regression in c3e0adcad8.
This commit is contained in:
Jeremy Bowman
2018-04-09 13:35:06 -04:00
committed by Tim Graham
parent 003334f8af
commit ee17bb8a67
5 changed files with 61 additions and 4 deletions

View File

@@ -9,4 +9,6 @@ Django 1.11.13 fixes several bugs in 1.11.12.
Bugfixes
========
* ...
* Fixed a regression in Django 1.11.8 where altering a field with a unique
constraint may drop and rebuild more foreign keys than necessary
(:ticket:`29193`).

View File

@@ -11,3 +11,7 @@ Bugfixes
* Corrected the import paths that ``inspectdb`` generates for
``django.contrib.postgres`` fields (:ticket:`29307`).
* Fixed a regression in Django 1.11.8 where altering a field with a unique
constraint may drop and rebuild more foreign keys than necessary
(:ticket:`29193`).