Skip to content

Commit

Permalink
[migrations] Cleaning up migration logic (#5167)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored Jun 12, 2018
1 parent 52a933f commit 502b617
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions superset/migrations/versions/f231d82b9b26_.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 502b617

Please sign in to comment.