"""evatest

Revision ID: 3027ee1ee598
Revises: f092e2617bf2
Create Date: 2024-12-24 03:50:04.158893

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '3027ee1ee598'
down_revision = 'f092e2617bf2'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_testcase_run', sa.Column('estimate_time', sa.Integer(), nullable=True, server_default='0'))
    op.add_column('cmf_testcase_run', sa.Column('spent_time', sa.Integer(), nullable=True, server_default='0'))
    op.drop_column('cmf_testcase_run', 'time_spent')
    op.add_column('cmf_testplan_testcase', sa.Column('estimate_time', sa.Integer(), nullable=True, server_default='0'))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('cmf_testplan_testcase', 'estimate_time')
    op.add_column('cmf_testcase_run', sa.Column('time_spent', sa.INTEGER(), autoincrement=False, nullable=True))
    op.drop_column('cmf_testcase_run', 'spent_time')
    op.drop_column('cmf_testcase_run', 'estimate_time')
    # ### end Alembic commands ###
