1
0
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:
Ben Cail
2024-02-01 16:08:42 -05:00
committed by Sarah Boyce
parent 7e00fee3bd
commit 9cf9c796be
6 changed files with 305 additions and 11 deletions

View File

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