"""chat channels

Revision ID: 95ba9d99b5ec
Revises: 4d351cbbf2ea
Create Date: 2021-09-14 14:12:54.981314

"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '95ba9d99b5ec'
down_revision = '4d351cbbf2ea'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_chat_topic', sa.Column('default_channel_id', sa.String(length=64), nullable=True))
    op.create_index(op.f('ix_cmf_chat_topic_default_channel_id'), 'cmf_chat_topic', ['default_channel_id'], unique=False)
    # ### end Alembic commands ###


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