1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[5.1.x] Fixed #34856 -- Fixed references to index_together in historical migrations.

While AlterUniqueTogether has been documented to be still allowed in historical
migrations for the foreseeable future it has been crashing since 2abf417c81
was merged because the latter removed support for Meta.index_together which the
migration framework uses to render models to perform schema changes.

CreateModel(options["unique_together"]) was also affected.

Refs #27236.

Co-authored-by: Simon Charette <charette.s@gmail.com>

Backport of b44efdfe54 from main.
This commit is contained in:
Andrés Reverón Molina
2024-12-16 13:54:51 +01:00
committed by Sarah Boyce
parent 85c3550106
commit 2ee6ca6d35
4 changed files with 234 additions and 11 deletions

View File

@@ -9,4 +9,5 @@ Django 5.1.5 fixes several bugs in 5.1.4.
Bugfixes
========
* ...
* Fixed a crash when applying migrations with references to the removed
``Meta.index_together`` option (:ticket:`34856`).