From 22ce5d0031bd795ade081394043833e82046016c Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 23 Dec 2019 23:28:59 +0100 Subject: Fixed #31106 -- Fixed migrations crash on PostgreSQL 10+ when adding FK constraints inline and changing data. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows adding foreign key constraints inline and changing data in the same migration on PostgreSQL 10+. Regression in 738faf9da2a5cd03148a36375db80746c99c9623. Thanks Janne Rönkkö for the report and Simon Charette for the implementation idea and review. --- docs/releases/3.0.2.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/3.0.2.txt b/docs/releases/3.0.2.txt index ccc82b18ae..ebb85d1f46 100644 --- a/docs/releases/3.0.2.txt +++ b/docs/releases/3.0.2.txt @@ -14,3 +14,7 @@ Bugfixes * Fixed a regression in Django 3.0 where ``QuerySet.exists()`` crashed if a queryset contained an aggregation over a ``Subquery()`` (:ticket:`31109`). + +* Fixed a regression in Django 3.0 that caused a migration crash on PostgreSQL + 10+ when adding a foreign key and changing data in the same migration + (:ticket:`31106`). -- cgit v1.3