From 77a6c827bf5556cfbc84b624ac2439f72a358e74 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 10 Mar 2015 16:14:21 -0400 Subject: [PATCH] - an adjustment to the logic for #282 - if the index we see here *is* in conn_indexes_by_name, then obviously we should leave it in. --- alembic/ddl/postgresql.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/alembic/ddl/postgresql.py b/alembic/ddl/postgresql.py index 10026876..9f97b345 100644 --- a/alembic/ddl/postgresql.py +++ b/alembic/ddl/postgresql.py @@ -105,6 +105,8 @@ class PostgresqlImpl(DefaultImpl): conn_indexes.remove(ix) for idx in list(metadata_indexes): + if idx.name in conn_indexes_by_name: + continue if compat.sqla_08: exprs = idx.expressions else: -- 2.47.2