summaryrefslogtreecommitdiff
path: root/tests/migrations/test_base.py
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-08-01 09:21:07 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-08-01 09:25:33 +0200
commit3dac3271d286f2790780e89d31ddbb7197f8defa (patch)
tree79c692137c241e587c82dea21e3d76b2afe320d6 /tests/migrations/test_base.py
parent8cf931dd2fde2561a615b96d5f709c15b672c4ba (diff)
Reverted "Fixed #28646 -- Prevented duplicate index when unique is set to True on PostgreSQL."
This reverts commit 9cf9c796be8dd53bc3b11355ff39d65c81d7be6d due to a crash on Oracle as it didn't allow multiple indexes on the same field.
Diffstat (limited to 'tests/migrations/test_base.py')
-rw-r--r--tests/migrations/test_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/migrations/test_base.py b/tests/migrations/test_base.py
index 1f565eb03d..0ff1dda1d9 100644
--- a/tests/migrations/test_base.py
+++ b/tests/migrations/test_base.py
@@ -102,7 +102,7 @@ class MigrationTestBase(TransactionTestCase):
.values()
if (
c["columns"] == list(columns)
- and (index_type is None or c.get("type") == index_type)
+ and (index_type is None or c["type"] == index_type)
and not c["unique"]
)
),