mirror of https://github.com/apache/superset.git
Fixes to the downgrade migration for user_id in sqlatables
This commit is contained in:
parent
6f948f0783
commit
f24e58abf2
|
@ -21,7 +21,6 @@ def upgrade():
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
with op.batch_alter_table('tables'):
|
with op.batch_alter_table('tables') as batch_op:
|
||||||
op.drop_constraint(None, 'tables', type_='foreignkey')
|
batch_op.drop_constraint('user_id', type_='foreignkey')
|
||||||
op.drop_column('tables', 'user_id')
|
batch_op.drop_column('user_id')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue