"""outline_number

Revision ID: 958096ab4ff2
Revises: f4e573f05b77
Create Date: 2024-07-22 10:36:12.294801

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '958096ab4ff2'
down_revision = 'f4e573f05b77'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_gantt_task', sa.Column('outline_number', sa.String(length=256), nullable=True))
    op.add_column('cmf_gantt_task', sa.Column('outline_parent_str', sa.String(length=256), nullable=True))
    op.add_column('cmf_gantt_task', sa.Column('outline_index_num', sa.Integer(), nullable=True))
    op.create_index(op.f('ix_cmf_gantt_task_outline_index_num'), 'cmf_gantt_task', ['outline_index_num'], unique=False)
    op.create_index(op.f('ix_cmf_gantt_task_outline_number'), 'cmf_gantt_task', ['outline_number'], unique=False)
    op.create_index(op.f('ix_cmf_gantt_task_outline_parent_str'), 'cmf_gantt_task', ['outline_parent_str'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_cmf_gantt_task_outline_parent_str'), table_name='cmf_gantt_task')
    op.drop_index(op.f('ix_cmf_gantt_task_outline_number'), table_name='cmf_gantt_task')
    op.drop_index(op.f('ix_cmf_gantt_task_outline_index_num'), table_name='cmf_gantt_task')
    op.drop_column('cmf_gantt_task', 'outline_index_num')
    op.drop_column('cmf_gantt_task', 'outline_parent_str')
    op.drop_column('cmf_gantt_task', 'outline_number')
    # ### end Alembic commands ###
