[4.0.x] Fixed #33194 -- Fixed migrations when altering a field with functional indexes/unique constraints on SQLite.

This adjusts Expressions.rename_table_references() to only update alias
when needed.

Regression in 83fcfc9ec8.

Co-authored-by: Simon Charette <charettes@users.noreply.github.com>

Backport of 86971c4090 from main
This commit is contained in:
Hannes Ljungberg 2021-10-15 22:17:26 +02:00 committed by Mariusz Felisiak
parent f5fd03aebe
commit 00aa3e0b9b
4 changed files with 64 additions and 6 deletions

View file

@ -10,4 +10,5 @@ Django 3.2.9 fixes several bugs in 3.2.8 and adds compatibility with Python
Bugfixes
========
* ...
* Fixed a bug in Django 3.2 that caused a migration crash on SQLite when
altering a field with a functional index (:ticket:`33194`).