1
0
mirror of https://github.com/django/django.git synced 2025-10-05 21:09:33 +00:00

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

This commit is contained in:
Mariusz Felisiak 2025-09-29 23:01:12 +02:00 committed by GitHub
parent 22448a4b65
commit 8b84364d46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"]
)