mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Use batch_alter_table to drop column in the migration script (#406)
This commit is contained in:
parent
b78ec54650
commit
7b5b602e96
@ -30,4 +30,6 @@ def upgrade():
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column('slices', 'perm')
|
||||
# Use batch_alter_table because dropping columns is not supported in SQLite
|
||||
with op.batch_alter_table('slices') as batch_op:
|
||||
batch_op.drop_column('perm')
|
||||
|
Loading…
Reference in New Issue
Block a user