"""add_gantt_task_sched_variables3

Revision ID: 0dfce58a3a75
Revises: aa048519ea87
Create Date: 2022-11-14 22:30:14.203834

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '0dfce58a3a75'
down_revision = 'aa048519ea87'
branch_labels = None
depends_on = None


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


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