1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +00:00

[6.0.x] Fixed assertIndexExists() crash when non-index constraint exists on the same columns.

Backport of 8b84364d46 from main
This commit is contained in:
Mariusz Felisiak
2025-09-29 23:01:12 +02:00
parent 015150999d
commit 2d502ed39d

View File

@@ -108,6 +108,7 @@ class MigrationTestBase(TransactionTestCase):
.values()
if (
c["columns"] == list(columns)
and c["index"] is True
and (index_type is None or c["type"] == index_type)
and not c["unique"]
)