mirror of
https://github.com/django/django.git
synced 2025-10-05 12:59:10 +00:00
Fixed assertIndexExists() crash when non-index constraint exists on the same columns.
This commit is contained in:
parent
22448a4b65
commit
8b84364d46
@ -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"]
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user