"""empty message

Revision ID: 81c062027a76
Revises: 21ad9cf25fea
Create Date: 2022-04-05 12:43:20.746509

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '81c062027a76'
down_revision = '21ad9cf25fea'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('post', sa.Column('anonymous', sa.Boolean(), nullable=True))
    anonymous = sa.table('post', sa.column('anonymous'))
    op.execute(anonymous.update().values(anonymous=False))
    op.alter_column('post', 'anonymous', nullable=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('post', 'anonymous')
    # ### end Alembic commands ###
