"""empty message

Revision ID: 04a15bfd9b21
Revises: 
Create Date: 2021-09-27 11:25:54.784096

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

# revision identifiers, used by Alembic.
revision = '04a15bfd9b21'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('chats', sa.Column('channel_id', postgresql.UUID(as_uuid=True), nullable=False))
    op.create_foreign_key(None, 'chats', 'channel', ['channel_id'], ['id'])
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'chats', type_='foreignkey')
    op.drop_column('chats', 'channel_id')
    # ### end Alembic commands ###
