"""empty message

Revision ID: 9b3e7847ae46
Revises: aac0c164650f
Create Date: 2021-10-14 19:21:02.635003

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '9b3e7847ae46'
down_revision = 'aac0c164650f'
branch_labels = None
depends_on = None


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


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('privacy_settings', 'show_rank')
    op.drop_column('moderation_flags', 'is_developer')
    # ### end Alembic commands ###
