def upgrade(): with op.batch_alter_table('editions', schema=None) as batch_op: batch_op.add_column(sa.Column('mode', sa.Integer(), nullable=True))