- fix the change we did in 56a178d218 so that the unique constraint/index thing

on PG still works
- replicate the index test for PG
This commit is contained in:
Mike Bayer
2013-10-11 17:14:28 -04:00
parent 56a178d218
commit 1cdf8af7ee
2 changed files with 7 additions and 0 deletions

View File

@@ -247,6 +247,8 @@ def _compare_indexes(schema, tname, object_filters, conn_table,
i.name for i in metadata_table.constraints \
if isinstance(i, sa_schema.UniqueConstraint) and i.name is not None
)
else:
c_uniques_keys = set(uq.name for uq in c_uniques_keys if uq.name is not None)
c_keys = set(c_objs).difference(c_uniques_keys)
m_keys = set(m_objs).difference(c_uniques_keys)