Skip to content

Commit

Permalink
Use batch_alter_table to drop column in the migration script (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
x4base authored and mistercrunch committed Apr 30, 2016
1 parent b78ec54 commit 7b5b602
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 7b5b602

Please sign in to comment.