"""cmf_ver

Revision ID: bc898ab12e81
Revises: ea31e38f2481
Create Date: 2024-10-29 14:51:12.806101

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'bc898ab12e81'
down_revision = 'ea31e38f2481'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('cmf_test_case',
    sa.Column('id', sa.String(length=64), nullable=False),
    sa.Column('cmf_locked_at', sa.TIMESTAMP(timezone=True), nullable=True),
    sa.Column('cmf_created_at', sa.TIMESTAMP(timezone=True), nullable=False),
    sa.Column('cmf_modified_at', sa.TIMESTAMP(timezone=True), nullable=False),
    sa.Column('cmf_viewed_at', sa.TIMESTAMP(timezone=True), nullable=True),
    sa.Column('cmf_deleted', sa.Boolean(), nullable=False),
    sa.Column('cmf_version', sa.BIGINT(), nullable=True),
    sa.Column('name', sa.String(length=256), nullable=True),
    sa.Column('code', sa.String(length=64), nullable=True),
    sa.Column('system', sa.Boolean(), nullable=False),
    sa.Column('text', sa.TEXT(), nullable=True),
    sa.Column('import_original', sa.Boolean(), nullable=False),
    sa.Column('import_raw_json', sa.TEXT(), nullable=True),
    sa.Column('ext_id', sa.String(), nullable=True),
    sa.Column('cmf_archived', sa.Boolean(), nullable=False),
    sa.Column('is_favorite', sa.Boolean(), nullable=False),
    sa.Column('has_tree_nodes', sa.Boolean(), nullable=False),
    sa.Column('tree_node_is_branch', sa.Boolean(), nullable=False),
    sa.Column('tree_hidden', sa.Boolean(), nullable=False),
    sa.Column('orderno', sa.Integer(), nullable=True),
    sa.Column('perm_public', sa.Boolean(), nullable=False),
    sa.Column('perm_has_acl', sa.Boolean(), nullable=False),
    sa.Column('perm_inherit', sa.Boolean(), nullable=False),
    sa.Column('perm_parent_owner_id', sa.String(length=64), nullable=True),
    sa.Column('perm_inherit_acl_id', sa.String(length=64), nullable=True),
    sa.Column('perm_effective_acl_id', sa.String(length=64), nullable=True),
    sa.Column('perm_security_level_allowed_ids_cache', sa.TEXT(), nullable=True),
    sa.Column('perm_encrypt', sa.Boolean(), nullable=False),
    sa.Column('is_public', sa.Boolean(), nullable=False),
    sa.Column('is_public_editable', sa.Boolean(), nullable=False),
    sa.Column('is_public_comments', sa.Boolean(), nullable=False),
    sa.Column('has_children_archived', sa.Boolean(), nullable=False),
    sa.Column('logic_prefix', sa.String(), nullable=True),
    sa.Column('ui_view_form', sa.String(length=32), nullable=False),
    sa.Column('parent_logic_prefix', sa.String(), nullable=True),
    sa.Column('ui_view_form_options', sa.TEXT(), nullable=False),
    sa.Column('status_modified_at', sa.TIMESTAMP(timezone=True), nullable=True),
    sa.Column('status_in_progress_start', sa.TIMESTAMP(timezone=True), nullable=True),
    sa.Column('status_in_progress_end', sa.TIMESTAMP(timezone=True), nullable=True),
    sa.Column('status_review_at', sa.TIMESTAMP(timezone=True), nullable=True),
    sa.Column('status_closed_at', sa.TIMESTAMP(timezone=True), nullable=True),
    sa.Column('no_control', sa.Boolean(), nullable=False),
    sa.Column('priority', sa.Integer(), nullable=False),
    sa.Column('mark', sa.String(length=32), nullable=True),
    sa.Column('user_rating', sa.Numeric(precision=14, scale=2), nullable=True),
    sa.Column('user_rating_count', sa.Integer(), nullable=False),
    sa.Column('alarm_date', sa.TIMESTAMP(timezone=True), nullable=True),
    sa.Column('deadline', sa.TIMESTAMP(timezone=True), nullable=True),
    sa.Column('plan_start_date', sa.TIMESTAMP(timezone=True), nullable=True),
    sa.Column('plan_end_date', sa.TIMESTAMP(timezone=True), nullable=True),
    sa.Column('period_next_date', sa.TIMESTAMP(timezone=True), nullable=True),
    sa.Column('period_interval', sa.String(length=32), nullable=True),
    sa.Column('is_template', sa.Boolean(), nullable=False),
    sa.Column('is_penalty', sa.Boolean(), nullable=False),
    sa.Column('cache_status_type', sa.String(length=32), nullable=True),
    sa.Column('cache_fields', sa.TEXT(), nullable=True),
    sa.Column('approved', sa.Boolean(), nullable=False),
    sa.Column('perm_policy', sa.String(length=32), nullable=False),
    sa.Column('perm_policy_guest', sa.String(length=32), nullable=False),
    sa.Column('perm_policy_anonymous', sa.String(length=32), nullable=False),
    sa.Column('perm_policy_sharelink', sa.String(length=32), nullable=False),
    sa.Column('sharelink_hash', sa.String(length=32), nullable=True),
    sa.Column('cmf_ver_number', sa.Integer(), nullable=True),
    sa.Column('cmf_ver_cur', sa.Boolean(), nullable=False),
    sa.Column('cmf_author_id', sa.String(length=64), nullable=True),
    sa.Column('cmf_owner_id', sa.String(length=64), nullable=True),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('cmf_modified_by_id', sa.String(length=64), nullable=True),
    sa.Column('cmf_locked_by_id', sa.String(length=64), nullable=True),
    sa.Column('cmf_import_id', sa.String(length=64), nullable=True),
    sa.Column('tree_parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_parent_id', sa.String(length=64), nullable=True),
    sa.Column('project_id', sa.String(length=64), nullable=True),
    sa.Column('perm_acl_id', sa.String(length=64), nullable=True),
    sa.Column('perm_parent_id', sa.String(length=64), nullable=True),
    sa.Column('workflow_id', sa.String(length=64), nullable=True),
    sa.Column('default_task_workflow_id', sa.String(length=64), nullable=True),
    sa.Column('logic_type_id', sa.String(length=64), nullable=True),
    sa.Column('scheme_wf_id', sa.String(length=64), nullable=True),
    sa.Column('cmf_owner_assistant_id', sa.String(length=64), nullable=True),
    sa.Column('perm_security_level_id', sa.String(length=64), nullable=True),
    sa.Column('resolution_id', sa.String(length=64), nullable=True),
    sa.Column('status_id', sa.String(length=64), nullable=True),
    sa.Column('company_id', sa.String(length=64), nullable=True),
    sa.Column('responsible_id', sa.String(length=64), nullable=True),
    sa.Column('waiting_for_id', sa.String(length=64), nullable=True),
    sa.Column('cloned_from_id', sa.String(length=64), nullable=True),
    sa.Column('activity_id', sa.String(length=64), nullable=True),
    sa.Column('cache_status_opt_id', sa.String(length=64), nullable=True),
    sa.Column('cmf_ver_head_id', sa.String(length=64), nullable=True),
    sa.Column('cmf_ver_head2cur_id', sa.String(length=64), nullable=True),
    sa.ForeignKeyConstraint(['activity_id'], ['cmf_activity.id'], ),
    sa.ForeignKeyConstraint(['cache_status_opt_id'], ['cmf_status_opt.id'], ),
    sa.ForeignKeyConstraint(['cmf_import_id'], ['cmf_import.id'], ),
    sa.ForeignKeyConstraint(['cmf_ver_head2cur_id'], ['cmf_test_case.id'], ),
    sa.ForeignKeyConstraint(['cmf_ver_head_id'], ['cmf_test_case.id'], ),
    sa.ForeignKeyConstraint(['company_id'], ['cmf_company.id'], ),
    sa.ForeignKeyConstraint(['default_task_workflow_id'], ['cmf_workflow.id'], ),
    sa.ForeignKeyConstraint(['logic_type_id'], ['cmf_logic_type.id'], ),
    sa.ForeignKeyConstraint(['perm_acl_id'], ['cmf_access_list.id'], ),
    sa.ForeignKeyConstraint(['perm_security_level_id'], ['cmf_security_level.id'], ),
    sa.ForeignKeyConstraint(['project_id'], ['cmf_project.id'], ),
    sa.ForeignKeyConstraint(['resolution_id'], ['cmf_resolution.id'], ),
    sa.ForeignKeyConstraint(['scheme_wf_id'], ['cmf_scheme_wf.id'], ),
    sa.ForeignKeyConstraint(['status_id'], ['cmf_status.id'], ),
    sa.ForeignKeyConstraint(['workflow_id'], ['cmf_workflow.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_test_case_activity_id'), 'cmf_test_case', ['activity_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_alarm_date'), 'cmf_test_case', ['alarm_date'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_approved'), 'cmf_test_case', ['approved'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cache_status_opt_id'), 'cmf_test_case', ['cache_status_opt_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cache_status_type'), 'cmf_test_case', ['cache_status_type'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cloned_from_id'), 'cmf_test_case', ['cloned_from_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_author_id'), 'cmf_test_case', ['cmf_author_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_created_at'), 'cmf_test_case', ['cmf_created_at'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_deleted'), 'cmf_test_case', ['cmf_deleted'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_import_id'), 'cmf_test_case', ['cmf_import_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_locked_at'), 'cmf_test_case', ['cmf_locked_at'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_locked_by_id'), 'cmf_test_case', ['cmf_locked_by_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_modified_at'), 'cmf_test_case', ['cmf_modified_at'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_modified_by_id'), 'cmf_test_case', ['cmf_modified_by_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_owner_assistant_id'), 'cmf_test_case', ['cmf_owner_assistant_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_owner_id'), 'cmf_test_case', ['cmf_owner_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_ver_head2cur_id'), 'cmf_test_case', ['cmf_ver_head2cur_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_ver_head_id'), 'cmf_test_case', ['cmf_ver_head_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_version'), 'cmf_test_case', ['cmf_version'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_viewed_at'), 'cmf_test_case', ['cmf_viewed_at'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_code'), 'cmf_test_case', ['code'], unique=True)
    op.create_index(op.f('ix_cmf_test_case_company_id'), 'cmf_test_case', ['company_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_deadline'), 'cmf_test_case', ['deadline'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_default_task_workflow_id'), 'cmf_test_case', ['default_task_workflow_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_is_template'), 'cmf_test_case', ['is_template'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_logic_prefix'), 'cmf_test_case', ['logic_prefix'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_logic_type_id'), 'cmf_test_case', ['logic_type_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_name'), 'cmf_test_case', ['name'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_orderno'), 'cmf_test_case', ['orderno'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_parent_id'), 'cmf_test_case', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_parent_logic_prefix'), 'cmf_test_case', ['parent_logic_prefix'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_perm_acl_id'), 'cmf_test_case', ['perm_acl_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_perm_parent_id'), 'cmf_test_case', ['perm_parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_perm_security_level_id'), 'cmf_test_case', ['perm_security_level_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_project_id'), 'cmf_test_case', ['project_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_resolution_id'), 'cmf_test_case', ['resolution_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_responsible_id'), 'cmf_test_case', ['responsible_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_root_parent_id'), 'cmf_test_case', ['root_parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_scheme_wf_id'), 'cmf_test_case', ['scheme_wf_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_status_id'), 'cmf_test_case', ['status_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_tree_parent_id'), 'cmf_test_case', ['tree_parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_waiting_for_id'), 'cmf_test_case', ['waiting_for_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_workflow_id'), 'cmf_test_case', ['workflow_id'], unique=False)
    op.create_table('cmf_test_case_cmf_owner_assistants',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_test_case_cmf_owner_assistants_left_id'), 'cmf_test_case_cmf_owner_assistants', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_owner_assistants_parent_id'), 'cmf_test_case_cmf_owner_assistants', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_owner_assistants_right_id'), 'cmf_test_case_cmf_owner_assistants', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_cmf_owner_assistants_root_id'), 'cmf_test_case_cmf_owner_assistants', ['root_id'], unique=False)
    op.create_table('cmf_test_case_executors',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_test_case_executors_left_id'), 'cmf_test_case_executors', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_executors_parent_id'), 'cmf_test_case_executors', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_executors_right_id'), 'cmf_test_case_executors', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_executors_root_id'), 'cmf_test_case_executors', ['root_id'], unique=False)
    op.create_table('cmf_test_case_local_links',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_test_case_local_links_left_id'), 'cmf_test_case_local_links', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_local_links_parent_id'), 'cmf_test_case_local_links', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_local_links_right_id'), 'cmf_test_case_local_links', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_local_links_root_id'), 'cmf_test_case_local_links', ['root_id'], unique=False)
    op.create_table('cmf_test_case_spectators',
    sa.Column('id', sa.String(length=128), nullable=False),
    sa.Column('parent_id', sa.String(length=64), nullable=True),
    sa.Column('root_id', sa.String(length=64), nullable=True),
    sa.Column('description', sa.String(length=4096), nullable=True),
    sa.Column('left_id', sa.String(length=64), nullable=True),
    sa.Column('right_id', sa.String(length=64), nullable=True),
    sa.Column('left_name_cache', sa.String(length=256), nullable=True),
    sa.Column('right_name_cache', sa.String(length=256), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_cmf_test_case_spectators_left_id'), 'cmf_test_case_spectators', ['left_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_spectators_parent_id'), 'cmf_test_case_spectators', ['parent_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_spectators_right_id'), 'cmf_test_case_spectators', ['right_id'], unique=False)
    op.create_index(op.f('ix_cmf_test_case_spectators_root_id'), 'cmf_test_case_spectators', ['root_id'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_cmf_test_case_spectators_root_id'), table_name='cmf_test_case_spectators')
    op.drop_index(op.f('ix_cmf_test_case_spectators_right_id'), table_name='cmf_test_case_spectators')
    op.drop_index(op.f('ix_cmf_test_case_spectators_parent_id'), table_name='cmf_test_case_spectators')
    op.drop_index(op.f('ix_cmf_test_case_spectators_left_id'), table_name='cmf_test_case_spectators')
    op.drop_table('cmf_test_case_spectators')
    op.drop_index(op.f('ix_cmf_test_case_local_links_root_id'), table_name='cmf_test_case_local_links')
    op.drop_index(op.f('ix_cmf_test_case_local_links_right_id'), table_name='cmf_test_case_local_links')
    op.drop_index(op.f('ix_cmf_test_case_local_links_parent_id'), table_name='cmf_test_case_local_links')
    op.drop_index(op.f('ix_cmf_test_case_local_links_left_id'), table_name='cmf_test_case_local_links')
    op.drop_table('cmf_test_case_local_links')
    op.drop_index(op.f('ix_cmf_test_case_executors_root_id'), table_name='cmf_test_case_executors')
    op.drop_index(op.f('ix_cmf_test_case_executors_right_id'), table_name='cmf_test_case_executors')
    op.drop_index(op.f('ix_cmf_test_case_executors_parent_id'), table_name='cmf_test_case_executors')
    op.drop_index(op.f('ix_cmf_test_case_executors_left_id'), table_name='cmf_test_case_executors')
    op.drop_table('cmf_test_case_executors')
    op.drop_index(op.f('ix_cmf_test_case_cmf_owner_assistants_root_id'), table_name='cmf_test_case_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_test_case_cmf_owner_assistants_right_id'), table_name='cmf_test_case_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_test_case_cmf_owner_assistants_parent_id'), table_name='cmf_test_case_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_test_case_cmf_owner_assistants_left_id'), table_name='cmf_test_case_cmf_owner_assistants')
    op.drop_table('cmf_test_case_cmf_owner_assistants')
    op.drop_index(op.f('ix_cmf_test_case_workflow_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_waiting_for_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_tree_parent_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_status_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_scheme_wf_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_root_parent_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_responsible_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_resolution_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_project_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_perm_security_level_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_perm_parent_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_perm_acl_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_parent_logic_prefix'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_parent_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_orderno'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_name'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_logic_type_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_logic_prefix'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_is_template'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_default_task_workflow_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_deadline'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_company_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_code'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_viewed_at'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_version'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_ver_head_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_ver_head2cur_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_owner_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_owner_assistant_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_modified_by_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_modified_at'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_locked_by_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_locked_at'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_import_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_deleted'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_created_at'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cmf_author_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cloned_from_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cache_status_type'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_cache_status_opt_id'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_approved'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_alarm_date'), table_name='cmf_test_case')
    op.drop_index(op.f('ix_cmf_test_case_activity_id'), table_name='cmf_test_case')
    op.drop_table('cmf_test_case')
    # ### end Alembic commands ###
