"""forum editions

Revision ID: a7aac1469393
Revises: e3b140752719
Create Date: 2019-09-02 21:12:52.236043

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'a7aac1469393'
down_revision = 'e3b140752719'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('forum', sa.Column('descr', sa.UnicodeText(), nullable=True))
    op.add_column('forum', sa.Column('prefix', sa.Unicode(length=64), nullable=True))
    op.drop_column('forum', 'slug')
    op.drop_column('forum', 'description')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('forum', sa.Column('description', sa.TEXT(), autoincrement=False, nullable=True))
    op.add_column('forum', sa.Column('slug', sa.VARCHAR(length=64), autoincrement=False, nullable=True))
    op.drop_column('forum', 'prefix')
    op.drop_column('forum', 'descr')
    # ### end Alembic commands ###
