def downgrade(): with op.batch_alter_table('upgrade_tasks') as batch_op: batch_op.drop_column('status')