"""empty message

Revision ID: 6113e779a4f9
Revises: da215c2212bc
Create Date: 2022-08-15 19:52:52.688096

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '6113e779a4f9'
down_revision = 'da215c2212bc'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_task', sa.Column('main_list_id', sa.String(length=64), nullable=True))
    op.create_index(op.f('ix_cmf_task_main_list_id'), 'cmf_task', ['main_list_id'], unique=False)
    op.create_foreign_key(None, 'cmf_task', 'cmf_list', ['main_list_id'], ['id'])
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'cmf_task', type_='foreignkey')
    op.drop_index(op.f('ix_cmf_task_main_list_id'), table_name='cmf_task')
    op.drop_column('cmf_task', 'main_list_id')
    # ### end Alembic commands ###
