"""empty message

Revision ID: 43f633c8e50a
Revises: d208ca918fec
Create Date: 2022-08-12 17:11:15.278346

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '43f633c8e50a'
down_revision = 'd208ca918fec'
branch_labels = None
depends_on = None


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


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('media', 'reviewed')
    op.add_column('media', sa.Column('reviewed', sa.VARCHAR(), autoincrement=False, nullable=True))
    media = sa.table('media', sa.column('reviewed'))
    op.execute(media.update().values(reviewed="true"))
    op.alter_column('media', 'reviewed', nullable=False)
    # ### end Alembic commands ###
