[migrations] Cleaning up migration logic (#5167)

This commit is contained in:
John Bodley
2018-06-12 12:10:53 -07:00
committed by GitHub
parent 52a933ffb8
commit 502b617310

View File

@@ -59,9 +59,6 @@ def downgrade():
)
# Remove the previous missing uniqueness constraints.
bind = op.get_bind()
insp = sa.engine.reflection.Inspector.from_engine(bind)
for table, column in names.items():
with op.batch_alter_table(table, naming_convention=conv) as batch_op:
batch_op.drop_constraint(