"""empty message

Revision ID: 8a205910a765
Revises: 0a6857020728
Create Date: 2022-11-01 15:03:23.325913

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '8a205910a765'
down_revision = '0a6857020728'
branch_labels = None
depends_on = None


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


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