"""improvin_voting_models Revision ID: 3d9ba6086a23 Revises: c98e920c06ae Create Date: 2019-03-30 13:52:32.070847 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3d9ba6086a23' down_revision = 'c98e920c06ae' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.add_column('option', sa.Column('description', sa.String(), nullable=True)) op.add_column('option', sa.Column('name', sa.String(), nullable=True)) op.drop_column('option', 'motivation') op.add_column('question', sa.Column('combined_approval_voting', sa.Boolean(), server_default='f', nullable=True)) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_column('question', 'combined_approval_voting') op.add_column('option', sa.Column('motivation', sa.VARCHAR(), autoincrement=False, nullable=True)) op.drop_column('option', 'name') op.drop_column('option', 'description') # ### end Alembic commands ###