From: Mike Bayer Date: Tue, 10 Mar 2015 20:14:21 +0000 (-0400) Subject: - an adjustment to the logic for #282 - if the index we see here X-Git-Tag: rel_0_7_5~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77a6c827bf5556cfbc84b624ac2439f72a358e74;p=thirdparty%2Fsqlalchemy%2Falembic.git - 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. --- 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: