mirror of
https://github.com/django/django.git
synced 2025-10-28 08:06:09 +00:00
Fixed assertIndexExists() crash when non-index constraint exists on the same columns.
This commit is contained in:
@@ -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"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user