From 40c0a964ccbbc856deef6a1fe977df27d349522e Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Tue, 12 Jun 2018 12:10:53 -0700 Subject: [PATCH] [migrations] Cleaning up migration logic (#5167) --- superset/migrations/versions/f231d82b9b26_.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/superset/migrations/versions/f231d82b9b26_.py b/superset/migrations/versions/f231d82b9b26_.py index 98379bac732aa..5d3acbef1d813 100644 --- a/superset/migrations/versions/f231d82b9b26_.py +++ b/superset/migrations/versions/f231d82b9b26_.py @@ -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(