"""empty message

Revision ID: aac0c164650f
Revises: debd6b45da0a
Create Date: 2021-10-05 13:13:35.789916

"""
from datetime import datetime

from alembic import op
import sqlalchemy as sa


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


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('moderation_flags', sa.Column('banned_till', sa.DateTime(), nullable=True))
    moderation_flags = sa.table('moderation_flags', sa.column('banned_till'))
    op.execute(moderation_flags.update().values(banned_till=datetime(2000, 1, 1)))
    op.alter_column('moderation_flags', 'banned_till', nullable=False)
    # ### end Alembic commands ###


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