john-bodley closed pull request #5167: [migrations] Cleaning up migration logic

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/superset/migrations/versions/ 
index 98379bac73..5d3acbef1d 100644
--- a/superset/migrations/versions/
+++ b/superset/migrations/versions/
@@ -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:


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to