mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #28646 -- Prevented duplicate index when unique is set to True on PostgreSQL.
This commit is contained in:
@@ -102,7 +102,7 @@ class MigrationTestBase(TransactionTestCase):
|
||||
.values()
|
||||
if (
|
||||
c["columns"] == list(columns)
|
||||
and (index_type is None or c["type"] == index_type)
|
||||
and (index_type is None or c.get("type") == index_type)
|
||||
and not c["unique"]
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user