"""evatest

Revision ID: 17a0f4df7f45
Revises: 1d42b5615aa7
Create Date: 2024-12-11 12:16:15.060459

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '17a0f4df7f45'
down_revision = '1d42b5615aa7'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('cmf_testcase_run_step', 'step_section',
               existing_type=sa.VARCHAR(length=32),
               nullable=False, server_default='main')
    op.alter_column('cmf_testcase_run_step', 'testcase_id',
               existing_type=sa.VARCHAR(length=64),
               nullable=False)
    op.alter_column('cmf_testcycle_testcase_result', 'testcase_id',
               existing_type=sa.VARCHAR(length=64),
               nullable=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('cmf_testcycle_testcase_result', 'testcase_id',
               existing_type=sa.VARCHAR(length=64),
               nullable=True)
    op.alter_column('cmf_testcase_run_step', 'testcase_id',
               existing_type=sa.VARCHAR(length=64),
               nullable=True)
    op.alter_column('cmf_testcase_run_step', 'step_section',
               existing_type=sa.VARCHAR(length=32),
               nullable=True)
    # ### end Alembic commands ###
