"""fix

Revision ID: 4bf55f3f7ec7
Revises: ef9b210ec301
Create Date: 2025-05-20 15:30:07.721398

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '4bf55f3f7ec7'
down_revision = 'ef9b210ec301'
branch_labels = None
depends_on = None


def upgrade():
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_key_phrase_code_gin_trgm ON cmf_key_phrase USING gin (code gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_key_phrase_name_gin_trgm ON cmf_key_phrase USING gin (name gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_test_configuration_code_gin_trgm ON cmf_test_configuration USING gin (code gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_test_configuration_name_gin_trgm ON cmf_test_configuration USING gin (name gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_test_environment_code_gin_trgm ON cmf_test_environment USING gin (code gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_test_environment_name_gin_trgm ON cmf_test_environment USING gin (name gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_testcase_step_code_gin_trgm ON cmf_testcase_step USING gin (code gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_testcase_step_name_gin_trgm ON cmf_testcase_step USING gin (name gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_testcycle_testcase_folder_code_gin_trgm ON cmf_testcycle_testcase_folder USING gin (code gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_testcycle_testcase_folder_name_gin_trgm ON cmf_testcycle_testcase_folder USING gin (name gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_testplan_testcase_code_gin_trgm ON cmf_testplan_testcase USING gin (code gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_testplan_testcase_name_gin_trgm ON cmf_testplan_testcase USING gin (name gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_testplan_testcase_folder_code_gin_trgm ON cmf_testplan_testcase_folder USING gin (code gin_trgm_ops)')
    op.execute('CREATE INDEX IF NOT EXISTS ix_cmf_testplan_testcase_folder_name_gin_trgm ON cmf_testplan_testcase_folder USING gin (name gin_trgm_ops)')
    op.create_index('ix_cmf_asset_code_gin_trgm', 'cmf_asset', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_asset_name_gin_trgm', 'cmf_asset', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_asset_cat_code_gin_trgm', 'cmf_asset_cat', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_asset_cat_name_gin_trgm', 'cmf_asset_cat', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_asset_scheme_code_gin_trgm', 'cmf_asset_scheme', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_asset_type_cat_code_gin_trgm', 'cmf_asset_type_cat', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_asset_type_cat_name_gin_trgm', 'cmf_asset_type_cat', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_blog_folder_code_gin_trgm', 'cmf_blog_folder', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_blog_folder_name_gin_trgm', 'cmf_blog_folder', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_chat_group_code_gin_trgm', 'cmf_chat_group', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_chat_topic_code_gin_trgm', 'cmf_chat_topic', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_company_code_gin_trgm', 'cmf_company', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_component_code_gin_trgm', 'cmf_component', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_component_name_gin_trgm', 'cmf_component', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_dashboard_code_gin_trgm', 'cmf_dashboard', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_dashboard_name_gin_trgm', 'cmf_dashboard', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_deal_code_gin_trgm', 'cmf_deal', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_deal_name_gin_trgm', 'cmf_deal', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_folder_code_gin_trgm', 'cmf_folder', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_folder_name_gin_trgm', 'cmf_folder', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_invoice_code_gin_trgm', 'cmf_invoice', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_invoice_name_gin_trgm', 'cmf_invoice', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_lead_code_gin_trgm', 'cmf_lead', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_lead_name_gin_trgm', 'cmf_lead', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mail_handler_code_gin_trgm', 'cmf_mail_handler', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mail_handler_name_gin_trgm', 'cmf_mail_handler', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_payment_code_gin_trgm', 'cmf_payment', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_payment_name_gin_trgm', 'cmf_payment', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_code_gin_trgm', 'cmf_project', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_purchase_order_code_gin_trgm', 'cmf_purchase_order', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_purchase_order_name_gin_trgm', 'cmf_purchase_order', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_purchase_order_items_code_gin_trgm', 'cmf_purchase_order_items', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_purchase_order_items_name_gin_trgm', 'cmf_purchase_order_items', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_registry_code_gin_trgm', 'cmf_registry', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_registry_name_gin_trgm', 'cmf_registry', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_roadmap_code_gin_trgm', 'cmf_roadmap', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_scheme_wf_code_gin_trgm', 'cmf_scheme_wf', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_scheme_wf_name_gin_trgm', 'cmf_scheme_wf', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_incoming_order_code_gin_trgm', 'cmf_stock_incoming_order', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_incoming_order_name_gin_trgm', 'cmf_stock_incoming_order', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_initial_code_gin_trgm', 'cmf_stock_initial', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_initial_name_gin_trgm', 'cmf_stock_initial', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_inventory_code_gin_trgm', 'cmf_stock_inventory', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_inventory_name_gin_trgm', 'cmf_stock_inventory', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_move_code_gin_trgm', 'cmf_stock_move', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_move_name_gin_trgm', 'cmf_stock_move', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_outcoming_order_code_gin_trgm', 'cmf_stock_outcoming_order', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_outcoming_order_name_gin_trgm', 'cmf_stock_outcoming_order', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_task_code_gin_trgm', 'cmf_task', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_task_filter_code_gin_trgm', 'cmf_task_filter', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_task_filter_name_gin_trgm', 'cmf_task_filter', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_task_queue_code_gin_trgm', 'cmf_task_queue', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_task_queue_name_gin_trgm', 'cmf_task_queue', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_task_report_code_gin_trgm', 'cmf_task_report', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_task_report_name_gin_trgm', 'cmf_task_report', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_testcase_code_gin_trgm', 'cmf_testcase', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_testcase_name_gin_trgm', 'cmf_testcase', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_testcase_folder_code_gin_trgm', 'cmf_testcase_folder', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_testcase_folder_name_gin_trgm', 'cmf_testcase_folder', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_testcycle_code_gin_trgm', 'cmf_testcycle', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_testcycle_name_gin_trgm', 'cmf_testcycle', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_testplan_code_gin_trgm', 'cmf_testplan', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_testplan_name_gin_trgm', 'cmf_testplan', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_u_work_post_code_gin_trgm', 'cmf_u_work_post', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_u_work_post_name_gin_trgm', 'cmf_u_work_post', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index('ix_cmf_u_work_post_name_gin_trgm', table_name='cmf_u_work_post', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_u_work_post_code_gin_trgm', table_name='cmf_u_work_post', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testplan_testcase_folder_name_gin_trgm', table_name='cmf_testplan_testcase_folder', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testplan_testcase_folder_code_gin_trgm', table_name='cmf_testplan_testcase_folder', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testplan_testcase_name_gin_trgm', table_name='cmf_testplan_testcase', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testplan_testcase_code_gin_trgm', table_name='cmf_testplan_testcase', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testplan_name_gin_trgm', table_name='cmf_testplan', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testplan_code_gin_trgm', table_name='cmf_testplan', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcycle_testcase_folder_name_gin_trgm', table_name='cmf_testcycle_testcase_folder', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcycle_testcase_folder_code_gin_trgm', table_name='cmf_testcycle_testcase_folder', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcycle_name_gin_trgm', table_name='cmf_testcycle', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcycle_code_gin_trgm', table_name='cmf_testcycle', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcase_step_name_gin_trgm', table_name='cmf_testcase_step', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcase_step_code_gin_trgm', table_name='cmf_testcase_step', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcase_run_history_step_name_gin_trgm', table_name='cmf_testcase_run_history_step', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcase_run_history_step_code_gin_trgm', table_name='cmf_testcase_run_history_step', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcase_run_history_name_gin_trgm', table_name='cmf_testcase_run_history', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcase_run_history_code_gin_trgm', table_name='cmf_testcase_run_history', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcase_run_name_gin_trgm', table_name='cmf_testcase_run', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcase_run_code_gin_trgm', table_name='cmf_testcase_run', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcase_folder_name_gin_trgm', table_name='cmf_testcase_folder', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcase_folder_code_gin_trgm', table_name='cmf_testcase_folder', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcase_name_gin_trgm', table_name='cmf_testcase', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_testcase_code_gin_trgm', table_name='cmf_testcase', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_test_params_row_name_gin_trgm', table_name='cmf_test_params_row', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_test_params_row_code_gin_trgm', table_name='cmf_test_params_row', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_test_param_value_code_gin_trgm', table_name='cmf_test_param_value', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_test_param_row_value_name_gin_trgm', table_name='cmf_test_param_row_value', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_test_param_row_value_code_gin_trgm', table_name='cmf_test_param_row_value', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_test_param_name_gin_trgm', table_name='cmf_test_param', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_test_param_code_gin_trgm', table_name='cmf_test_param', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_test_environment_name_gin_trgm', table_name='cmf_test_environment', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_test_environment_code_gin_trgm', table_name='cmf_test_environment', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_test_configuration_name_gin_trgm', table_name='cmf_test_configuration', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_test_configuration_code_gin_trgm', table_name='cmf_test_configuration', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_task_report_name_gin_trgm', table_name='cmf_task_report', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_task_report_code_gin_trgm', table_name='cmf_task_report', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_task_queue_name_gin_trgm', table_name='cmf_task_queue', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_task_queue_code_gin_trgm', table_name='cmf_task_queue', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_task_filter_name_gin_trgm', table_name='cmf_task_filter', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_task_filter_code_gin_trgm', table_name='cmf_task_filter', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_task_code_gin_trgm', table_name='cmf_task', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_outcoming_order_name_gin_trgm', table_name='cmf_stock_outcoming_order', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_outcoming_order_code_gin_trgm', table_name='cmf_stock_outcoming_order', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_move_name_gin_trgm', table_name='cmf_stock_move', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_move_code_gin_trgm', table_name='cmf_stock_move', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_inventory_name_gin_trgm', table_name='cmf_stock_inventory', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_inventory_code_gin_trgm', table_name='cmf_stock_inventory', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_initial_name_gin_trgm', table_name='cmf_stock_initial', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_initial_code_gin_trgm', table_name='cmf_stock_initial', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_incoming_order_name_gin_trgm', table_name='cmf_stock_incoming_order', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_incoming_order_code_gin_trgm', table_name='cmf_stock_incoming_order', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_scheme_wf_name_gin_trgm', table_name='cmf_scheme_wf', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_scheme_wf_code_gin_trgm', table_name='cmf_scheme_wf', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_roadmap_code_gin_trgm', table_name='cmf_roadmap', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_registry_name_gin_trgm', table_name='cmf_registry', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_registry_code_gin_trgm', table_name='cmf_registry', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_purchase_order_items_name_gin_trgm', table_name='cmf_purchase_order_items', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_purchase_order_items_code_gin_trgm', table_name='cmf_purchase_order_items', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_purchase_order_name_gin_trgm', table_name='cmf_purchase_order', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_purchase_order_code_gin_trgm', table_name='cmf_purchase_order', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_code_gin_trgm', table_name='cmf_project', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_payment_name_gin_trgm', table_name='cmf_payment', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_payment_code_gin_trgm', table_name='cmf_payment', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mail_handler_name_gin_trgm', table_name='cmf_mail_handler', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mail_handler_code_gin_trgm', table_name='cmf_mail_handler', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_lead_name_gin_trgm', table_name='cmf_lead', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_lead_code_gin_trgm', table_name='cmf_lead', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_key_phrase_name_gin_trgm', table_name='cmf_key_phrase', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_key_phrase_code_gin_trgm', table_name='cmf_key_phrase', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_invoice_name_gin_trgm', table_name='cmf_invoice', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_invoice_code_gin_trgm', table_name='cmf_invoice', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_folder_name_gin_trgm', table_name='cmf_folder', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_folder_code_gin_trgm', table_name='cmf_folder', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_deal_name_gin_trgm', table_name='cmf_deal', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_deal_code_gin_trgm', table_name='cmf_deal', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_dashboard_name_gin_trgm', table_name='cmf_dashboard', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_dashboard_code_gin_trgm', table_name='cmf_dashboard', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_component_name_gin_trgm', table_name='cmf_component', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_component_code_gin_trgm', table_name='cmf_component', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_company_code_gin_trgm', table_name='cmf_company', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_chat_topic_code_gin_trgm', table_name='cmf_chat_topic', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_chat_group_code_gin_trgm', table_name='cmf_chat_group', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_blog_folder_name_gin_trgm', table_name='cmf_blog_folder', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_blog_folder_code_gin_trgm', table_name='cmf_blog_folder', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_asset_type_cat_name_gin_trgm', table_name='cmf_asset_type_cat', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_asset_type_cat_code_gin_trgm', table_name='cmf_asset_type_cat', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_asset_scheme_code_gin_trgm', table_name='cmf_asset_scheme', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_asset_cat_name_gin_trgm', table_name='cmf_asset_cat', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_asset_cat_code_gin_trgm', table_name='cmf_asset_cat', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_asset_name_gin_trgm', table_name='cmf_asset', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_asset_code_gin_trgm', table_name='cmf_asset', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    # ### end Alembic commands ###
