summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-03-10 16:14:21 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-03-10 16:14:21 -0400
commit77a6c827bf5556cfbc84b624ac2439f72a358e74 (patch)
tree62418ec626c696e10b927e5f64d782e812993806
parent46761f9d868c40e0eacac45dac32fdce20bb6f7b (diff)
downloadalembic-77a6c827bf5556cfbc84b624ac2439f72a358e74.tar.gz
- 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.
-rw-r--r--alembic/ddl/postgresql.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/alembic/ddl/postgresql.py b/alembic/ddl/postgresql.py
index 1002687..9f97b34 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: