"""add a description to trophies

Revision ID: b659d4c2a5d1
Revises: d1b465f88d3b
Create Date: 2020-07-19 22:06:55.789405

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'b659d4c2a5d1'
down_revision = 'd1b465f88d3b'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('trophy', sa.Column('description', sa.UnicodeText(), nullable=True))
    op.create_index(op.f('ix_trophy_description'), 'trophy', ['description'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_trophy_description'), table_name='trophy')
    op.drop_column('trophy', 'description')
    # ### end Alembic commands ###
