Use batch_alter_table to drop column in the migration script (#406)

This commit is contained in:
x4base 2016-04-30 23:30:40 +08:00 committed by Maxime Beauchemin
parent b78ec54650
commit 7b5b602e96

View File

@ -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')