mirror of
https://github.com/django/django.git
synced 2025-10-09 14:59:24 +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:
parent
015150999d
commit
2d502ed39d
@ -108,6 +108,7 @@ class MigrationTestBase(TransactionTestCase):
|
|||||||
.values()
|
.values()
|
||||||
if (
|
if (
|
||||||
c["columns"] == list(columns)
|
c["columns"] == list(columns)
|
||||||
|
and c["index"] is True
|
||||||
and (index_type is None or c["type"] == index_type)
|
and (index_type is None or c["type"] == index_type)
|
||||||
and not c["unique"]
|
and not c["unique"]
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user