1
0
mirror of https://github.com/django/django.git synced 2025-10-09 06:49:12 +00:00

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

Backport of 8b84364d469e394d9f04b4f96a7da1fc16d93fce 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"]
)