mirror of
https://github.com/apache/superset.git
synced 2026-06-01 13:49:21 +00:00
[migrations] Cleaning up migration logic (#5167)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user