"""add_gantt_task_sched_variables

Revision ID: 93c2286d34d7
Revises: aba217b23144
Create Date: 2022-11-13 20:24:32.775133

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '93c2286d34d7'
down_revision = 'aba217b23144'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_gantt_task', sa.Column('sched_finish_date', sa.TIMESTAMP(timezone=True), nullable=True))
    op.add_column('cmf_gantt_task', sa.Column('sched_start_date', sa.TIMESTAMP(timezone=True), nullable=True))
    op.create_index(op.f('ix_cmf_gantt_task_sched_finish_date'), 'cmf_gantt_task', ['sched_finish_date'], unique=False)
    op.create_index(op.f('ix_cmf_gantt_task_sched_start_date'), 'cmf_gantt_task', ['sched_start_date'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_cmf_gantt_task_sched_start_date'), table_name='cmf_gantt_task')
    op.drop_index(op.f('ix_cmf_gantt_task_sched_finish_date'), table_name='cmf_gantt_task')
    op.drop_column('cmf_gantt_task', 'sched_start_date')
    op.drop_column('cmf_gantt_task', 'sched_finish_date')
    # ### end Alembic commands ###
