"""gantt duration

Revision ID: d0d450c778c0
Revises: 4d0bca55d982
Create Date: 2022-11-26 00:15:04.642773

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'd0d450c778c0'
down_revision = '4d0bca55d982'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('cmf_gantt_task', 'actual_myself_cost',
               existing_type=sa.INTEGER(),
               type_=sa.Numeric(precision=14, scale=2),
               existing_nullable=False)
    op.drop_column('cmf_gantt_task', 'agregat_duration')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_gantt_task', sa.Column('agregat_duration', sa.INTEGER(), autoincrement=False, nullable=True))
    op.alter_column('cmf_gantt_task', 'actual_myself_cost',
               existing_type=sa.Numeric(precision=14, scale=2),
               type_=sa.INTEGER(),
               existing_nullable=False)
    # ### end Alembic commands ###
