"""empty message

Revision ID: d208ca918fec
Revises: 8b251ccf6710
Create Date: 2022-07-19 11:53:03.480202

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'd208ca918fec'
down_revision = '8b251ccf6710'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('media', sa.Column('icon', sa.String(), nullable=True))
    op.alter_column('media', 'title',
               existing_type=sa.VARCHAR(),
               nullable=True)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('media', 'title',
               existing_type=sa.VARCHAR(),
               nullable=False)
    op.drop_column('media', 'icon')
    # ### end Alembic commands ###
