"""state(enum) -> obsolete(Boolean) Revision ID: faecbd04e5eb Revises: 4e4d30fd58fc Create Date: 2023-08-05 23:57:31.784676 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'faecbd04e5eb' down_revision = '4e4d30fd58fc' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('announcements', schema=None) as batch_op: batch_op.add_column(sa.Column('obsolete', sa.Boolean(), nullable=True)) batch_op.drop_column('state') # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('announcements', schema=None) as batch_op: batch_op.add_column(sa.Column('state', sa.VARCHAR(length=9), nullable=True)) batch_op.drop_column('obsolete') # ### end Alembic commands ###