"""gin_index

Revision ID: da3edf176daa
Revises: e51f8ebf45d7
Create Date: 2025-04-30 12:30:07.335641

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'da3edf176daa'
down_revision = 'e51f8ebf45d7'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_index('ix_cmf_access_rule_code_gin_trgm', 'cmf_access_rule', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_access_rule_name_gin_trgm', 'cmf_access_rule', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_active_entity_filter_code_gin_trgm', 'cmf_active_entity_filter', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_active_entity_filter_name_gin_trgm', 'cmf_active_entity_filter', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_activity_name_gin_trgm', 'cmf_activity', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_answer_template_code_gin_trgm', 'cmf_answer_template', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_answer_template_name_gin_trgm', 'cmf_answer_template', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_approve_group_code_gin_trgm', 'cmf_approve_group', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_approve_group_name_gin_trgm', 'cmf_approve_group', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_asset_scheme_name_gin_trgm', 'cmf_asset_scheme', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_asset_type_code_gin_trgm', 'cmf_asset_type', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_asset_type_name_gin_trgm', 'cmf_asset_type', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_auth_ldap_plugin_code_gin_trgm', 'cmf_auth_ldap_plugin', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_auth_ldap_plugin_name_gin_trgm', 'cmf_auth_ldap_plugin', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_auth_open_id_plugin_code_gin_trgm', 'cmf_auth_open_id_plugin', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_auth_open_id_plugin_name_gin_trgm', 'cmf_auth_open_id_plugin', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_automation_cron_trigger_code_gin_trgm', 'cmf_automation_cron_trigger', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_automation_cron_trigger_name_gin_trgm', 'cmf_automation_cron_trigger', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_automation_crud_trigger_code_gin_trgm', 'cmf_automation_crud_trigger', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_automation_crud_trigger_name_gin_trgm', 'cmf_automation_crud_trigger', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_automation_ui_form_code_gin_trgm', 'cmf_automation_ui_form', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_automation_ui_form_name_gin_trgm', 'cmf_automation_ui_form', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_balance_code_gin_trgm', 'cmf_balance', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_balance_name_gin_trgm', 'cmf_balance', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_balance_operation_code_gin_trgm', 'cmf_balance_operation', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_balance_operation_name_gin_trgm', 'cmf_balance_operation', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_business_sector_code_gin_trgm', 'cmf_business_sector', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_business_sector_name_gin_trgm', 'cmf_business_sector', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_calendar_code_gin_trgm', 'cmf_calendar', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_calendar_name_gin_trgm', 'cmf_calendar', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_calendar_exclude_code_gin_trgm', 'cmf_calendar_exclude', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_calendar_exclude_name_gin_trgm', 'cmf_calendar_exclude', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_calendar_exclude_interval_code_gin_trgm', 'cmf_calendar_exclude_interval', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_calendar_exclude_interval_name_gin_trgm', 'cmf_calendar_exclude_interval', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_calendar_work_week_code_gin_trgm', 'cmf_calendar_work_week', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_calendar_work_week_name_gin_trgm', 'cmf_calendar_work_week', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_calendar_work_week_interval_code_gin_trgm', 'cmf_calendar_work_week_interval', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_calendar_work_week_interval_name_gin_trgm', 'cmf_calendar_work_week_interval', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_card_code_gin_trgm', 'cmf_card', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_chat_message_code_gin_trgm', 'cmf_chat_message', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_chat_message_name_gin_trgm', 'cmf_chat_message', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_client_job_code_gin_trgm', 'cmf_client_job', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_client_job_name_gin_trgm', 'cmf_client_job', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_contract_code_gin_trgm', 'cmf_contract', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_contract_name_gin_trgm', 'cmf_contract', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_cust_field_code_gin_trgm', 'cmf_cust_field', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_cust_field_name_gin_trgm', 'cmf_cust_field', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_cust_field_conf_code_gin_trgm', 'cmf_cust_field_conf', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_cust_field_conf_name_gin_trgm', 'cmf_cust_field_conf', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_cust_field_conf_field_code_gin_trgm', 'cmf_cust_field_conf_field', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_cust_field_conf_field_name_gin_trgm', 'cmf_cust_field_conf_field', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_cust_field_conf_scheme_code_gin_trgm', 'cmf_cust_field_conf_scheme', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_cust_field_conf_scheme_name_gin_trgm', 'cmf_cust_field_conf_scheme', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_cust_field_conf_scheme_rule_code_gin_trgm', 'cmf_cust_field_conf_scheme_rule', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_cust_field_conf_scheme_rule_name_gin_trgm', 'cmf_cust_field_conf_scheme_rule', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_deal_items_code_gin_trgm', 'cmf_deal_items', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_deal_items_name_gin_trgm', 'cmf_deal_items', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_document_code_gin_trgm', 'cmf_document', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_document_name_gin_trgm', 'cmf_document', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_email_list_code_gin_trgm', 'cmf_email_list', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_email_list_name_gin_trgm', 'cmf_email_list', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_email_list_item_code_gin_trgm', 'cmf_email_list_item', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_email_list_item_name_gin_trgm', 'cmf_email_list_item', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_email_template_code_gin_trgm', 'cmf_email_template', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_email_template_name_gin_trgm', 'cmf_email_template', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_event_type_code_gin_trgm', 'cmf_event_type', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_event_type_name_gin_trgm', 'cmf_event_type', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_export_code_gin_trgm', 'cmf_export', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_export_name_gin_trgm', 'cmf_export', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_filter_code_gin_trgm', 'cmf_filter', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_filter_name_gin_trgm', 'cmf_filter', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_form_code_gin_trgm', 'cmf_form', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_form_name_gin_trgm', 'cmf_form', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_full_search_obj_code_gin_trgm', 'cmf_full_search', ['obj_code'], unique=False, postgresql_using='gin', postgresql_ops={'obj_code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_gantt_baseline_code_gin_trgm', 'cmf_gantt_baseline', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_gantt_baseline_name_gin_trgm', 'cmf_gantt_baseline', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_git_branch_code_gin_trgm', 'cmf_git_branch', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_git_commit_code_gin_trgm', 'cmf_git_commit', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_git_commit_name_gin_trgm', 'cmf_git_commit', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_git_merge_request_code_gin_trgm', 'cmf_git_merge_request', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_git_repo_code_gin_trgm', 'cmf_git_repo', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_global_settings_code_gin_trgm', 'cmf_global_settings', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_global_settings_name_gin_trgm', 'cmf_global_settings', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_html_scheme_code_gin_trgm', 'cmf_html_scheme', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_html_scheme_name_gin_trgm', 'cmf_html_scheme', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_import_code_gin_trgm', 'cmf_import', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_import_name_gin_trgm', 'cmf_import', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_integration_code_gin_trgm', 'cmf_integration', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_integration_name_gin_trgm', 'cmf_integration', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_invoice_items_code_gin_trgm', 'cmf_invoice_items', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_job_code_gin_trgm', 'cmf_job', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_job_name_gin_trgm', 'cmf_job', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_kanban_board_card_color_rule_code_gin_trgm', 'cmf_kanban_board_card_color_rule', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_kanban_board_card_color_rule_name_gin_trgm', 'cmf_kanban_board_card_color_rule', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_lead_mailbox_code_gin_trgm', 'cmf_lead_mailbox', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_lead_mailbox_name_gin_trgm', 'cmf_lead_mailbox', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_license_code_gin_trgm', 'cmf_license', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_license_name_gin_trgm', 'cmf_license', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_link_code_gin_trgm', 'cmf_link', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_link_name_gin_trgm', 'cmf_link', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_location_code_gin_trgm', 'cmf_location', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_logic_type_code_gin_trgm', 'cmf_logic_type', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mail_code_gin_trgm', 'cmf_mail', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mail_name_gin_trgm', 'cmf_mail', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mail_signature_code_gin_trgm', 'cmf_mail_signature', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mail_signature_name_gin_trgm', 'cmf_mail_signature', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mail_template_code_gin_trgm', 'cmf_mail_template', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mail_template_name_gin_trgm', 'cmf_mail_template', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mailbox_code_gin_trgm', 'cmf_mailbox', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mailbox_name_gin_trgm', 'cmf_mailbox', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mailbox2_code_gin_trgm', 'cmf_mailbox2', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mailbox2_name_gin_trgm', 'cmf_mailbox2', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mailbox_folder_code_gin_trgm', 'cmf_mailbox_folder', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_mailbox_folder_name_gin_trgm', 'cmf_mailbox_folder', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_menu_item_code_gin_trgm', 'cmf_menu_item', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_menu_item_name_gin_trgm', 'cmf_menu_item', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_menu_tree_code_gin_trgm', 'cmf_menu_tree', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_menu_tree_name_gin_trgm', 'cmf_menu_tree', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_menu_tree_item_code_gin_trgm', 'cmf_menu_tree_item', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_menu_tree_item_name_gin_trgm', 'cmf_menu_tree_item', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_notepad_code_gin_trgm', 'cmf_notepad', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_notepad_name_gin_trgm', 'cmf_notepad', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_perm_publish_policy_code_gin_trgm', 'cmf_perm_publish_policy', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_perm_publish_policy_name_gin_trgm', 'cmf_perm_publish_policy', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_person_code_gin_trgm', 'cmf_person', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_person_name_gin_trgm', 'cmf_person', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_person_var_code_gin_trgm', 'cmf_person_var', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_person_var_name_gin_trgm', 'cmf_person_var', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plan_code_gin_trgm', 'cmf_plan', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plan_name_gin_trgm', 'cmf_plan', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_code_gin_trgm', 'cmf_plugin', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_name_gin_trgm', 'cmf_plugin', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_asana_code_gin_trgm', 'cmf_plugin_asana', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_asana_name_gin_trgm', 'cmf_plugin_asana', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_confluence_code_gin_trgm', 'cmf_plugin_confluence', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_confluence_name_gin_trgm', 'cmf_plugin_confluence', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_csv_code_gin_trgm', 'cmf_plugin_csv', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_csv_name_gin_trgm', 'cmf_plugin_csv', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_eva_code_gin_trgm', 'cmf_plugin_eva', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_eva_name_gin_trgm', 'cmf_plugin_eva', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_git_code_gin_trgm', 'cmf_plugin_git', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_git_name_gin_trgm', 'cmf_plugin_git', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_jira_code_gin_trgm', 'cmf_plugin_jira', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_jira_name_gin_trgm', 'cmf_plugin_jira', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_mail_box_code_gin_trgm', 'cmf_plugin_mail_box', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_mail_box_name_gin_trgm', 'cmf_plugin_mail_box', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_s_m_s_gate_code_gin_trgm', 'cmf_plugin_s_m_s_gate', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_s_m_s_gate_name_gin_trgm', 'cmf_plugin_s_m_s_gate', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_telphin_code_gin_trgm', 'cmf_plugin_telphin', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_telphin_name_gin_trgm', 'cmf_plugin_telphin', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_tracker_api_code_gin_trgm', 'cmf_plugin_tracker_api', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_tracker_api_name_gin_trgm', 'cmf_plugin_tracker_api', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_trello_code_gin_trgm', 'cmf_plugin_trello', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_trello_name_gin_trgm', 'cmf_plugin_trello', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_you_track_code_gin_trgm', 'cmf_plugin_you_track', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_you_track_name_gin_trgm', 'cmf_plugin_you_track', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_zadarma_code_gin_trgm', 'cmf_plugin_zadarma', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_plugin_zadarma_name_gin_trgm', 'cmf_plugin_zadarma', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_price_code_gin_trgm', 'cmf_price', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_print_tmpl_code_gin_trgm', 'cmf_print_tmpl', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_print_tmpl_name_gin_trgm', 'cmf_print_tmpl', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_product_code_gin_trgm', 'cmf_product', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_product_name_gin_trgm', 'cmf_product', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_name_gin_trgm', 'cmf_project', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_category_code_gin_trgm', 'cmf_project_category', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_category_name_gin_trgm', 'cmf_project_category', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_notify_scheme_code_gin_trgm', 'cmf_project_notify_scheme', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_notify_scheme_name_gin_trgm', 'cmf_project_notify_scheme', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_notify_scheme_rule_code_gin_trgm', 'cmf_project_notify_scheme_rule', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_notify_scheme_rule_name_gin_trgm', 'cmf_project_notify_scheme_rule', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_perm_permission_code_gin_trgm', 'cmf_project_perm_permission', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_perm_permission_name_gin_trgm', 'cmf_project_perm_permission', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_perm_scheme_code_gin_trgm', 'cmf_project_perm_scheme', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_perm_scheme_name_gin_trgm', 'cmf_project_perm_scheme', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_perm_scheme_rule_code_gin_trgm', 'cmf_project_perm_scheme_rule', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_perm_scheme_rule_name_gin_trgm', 'cmf_project_perm_scheme_rule', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_role_code_gin_trgm', 'cmf_project_role', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_role_name_gin_trgm', 'cmf_project_role', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_role_assign_code_gin_trgm', 'cmf_project_role_assign', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_project_role_assign_name_gin_trgm', 'cmf_project_role_assign', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_refbook_code_gin_trgm', 'cmf_refbook', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_refbook_name_gin_trgm', 'cmf_refbook', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_relation_type_code_gin_trgm', 'cmf_relation_type', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_relation_type_name_gin_trgm', 'cmf_relation_type', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_resolution_code_gin_trgm', 'cmf_resolution', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_resolution_name_gin_trgm', 'cmf_resolution', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_knowlage_category_code_gin_trgm', 'cmf_s_desk_knowlage_category', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_knowlage_category_name_gin_trgm', 'cmf_s_desk_knowlage_category', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_request_group_code_gin_trgm', 'cmf_s_desk_request_group', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_request_group_name_gin_trgm', 'cmf_s_desk_request_group', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_request_type_code_gin_trgm', 'cmf_s_desk_request_type', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_request_type_name_gin_trgm', 'cmf_s_desk_request_type', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_sla_code_gin_trgm', 'cmf_s_desk_sla', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_sla_name_gin_trgm', 'cmf_s_desk_sla', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_sla_cycle_code_gin_trgm', 'cmf_s_desk_sla_cycle', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_sla_cycle_name_gin_trgm', 'cmf_s_desk_sla_cycle', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_sla_goal_code_gin_trgm', 'cmf_s_desk_sla_goal', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_sla_goal_name_gin_trgm', 'cmf_s_desk_sla_goal', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_sla_trigger_code_gin_trgm', 'cmf_s_desk_sla_trigger', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_s_desk_sla_trigger_name_gin_trgm', 'cmf_s_desk_sla_trigger', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_sale_menu_group_code_gin_trgm', 'cmf_sale_menu_group', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_sale_menu_group_name_gin_trgm', 'cmf_sale_menu_group', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_scheme_wf_rule_code_gin_trgm', 'cmf_scheme_wf_rule', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_scheme_wf_rule_name_gin_trgm', 'cmf_scheme_wf_rule', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_security_level_code_gin_trgm', 'cmf_security_level', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_security_level_name_gin_trgm', 'cmf_security_level', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_security_level_rule_code_gin_trgm', 'cmf_security_level_rule', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_security_level_rule_name_gin_trgm', 'cmf_security_level_rule', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_security_level_scheme_code_gin_trgm', 'cmf_security_level_scheme', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_security_level_scheme_name_gin_trgm', 'cmf_security_level_scheme', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_staff_control_settings_code_gin_trgm', 'cmf_staff_control_settings', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_staff_control_settings_name_gin_trgm', 'cmf_staff_control_settings', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_status_name_gin_trgm', 'cmf_status', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_status_code_code_gin_trgm', 'cmf_status_code', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_status_code_name_gin_trgm', 'cmf_status_code', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_status_opt_name_gin_trgm', 'cmf_status_opt', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_code_gin_trgm', 'cmf_stock', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_name_gin_trgm', 'cmf_stock', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_incoming_order_item_code_gin_trgm', 'cmf_stock_incoming_order_item', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_incoming_order_item_name_gin_trgm', 'cmf_stock_incoming_order_item', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_initial_item_code_gin_trgm', 'cmf_stock_initial_item', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_initial_item_name_gin_trgm', 'cmf_stock_initial_item', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_inventory_item_code_gin_trgm', 'cmf_stock_inventory_item', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_inventory_item_name_gin_trgm', 'cmf_stock_inventory_item', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_item_code_gin_trgm', 'cmf_stock_item', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_item_name_gin_trgm', 'cmf_stock_item', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_menu_group_code_gin_trgm', 'cmf_stock_menu_group', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_menu_group_name_gin_trgm', 'cmf_stock_menu_group', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_move_item_code_gin_trgm', 'cmf_stock_move_item', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_move_item_name_gin_trgm', 'cmf_stock_move_item', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_operation_code_gin_trgm', 'cmf_stock_operation', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_operation_name_gin_trgm', 'cmf_stock_operation', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_operation_item_code_gin_trgm', 'cmf_stock_operation_item', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_operation_item_name_gin_trgm', 'cmf_stock_operation_item', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_outcoming_order_item_code_gin_trgm', 'cmf_stock_outcoming_order_item', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_stock_outcoming_order_item_name_gin_trgm', 'cmf_stock_outcoming_order_item', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_subscription_code_gin_trgm', 'cmf_subscription', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_subscription_name_gin_trgm', 'cmf_subscription', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_synonym_code_gin_trgm', 'cmf_synonym', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_tag_code_gin_trgm', 'cmf_tag', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_tag_category_code_gin_trgm', 'cmf_tag_category', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_tag_category_name_gin_trgm', 'cmf_tag_category', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_task_res_assign_code_gin_trgm', 'cmf_task_res_assign', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_task_res_assign_name_gin_trgm', 'cmf_task_res_assign', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_task_res_assign_timephase_code_gin_trgm', 'cmf_task_res_assign_timephase', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_task_res_assign_timephase_name_gin_trgm', 'cmf_task_res_assign_timephase', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_time_tracker_code_gin_trgm', 'cmf_time_tracker', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_time_tracker_name_gin_trgm', 'cmf_time_tracker', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_timesheets_team_code_gin_trgm', 'cmf_timesheets_team', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_timesheets_team_name_gin_trgm', 'cmf_timesheets_team', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_timesheets_team_member_code_gin_trgm', 'cmf_timesheets_team_member', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_timesheets_team_member_name_gin_trgm', 'cmf_timesheets_team_member', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_trans_code_gin_trgm', 'cmf_trans', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_trans_name_gin_trgm', 'cmf_trans', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_trans_action_code_gin_trgm', 'cmf_trans_action', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_trans_action_name_gin_trgm', 'cmf_trans_action', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_trans_filter_code_gin_trgm', 'cmf_trans_filter', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_trans_filter_name_gin_trgm', 'cmf_trans_filter', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_trans_valid_code_gin_trgm', 'cmf_trans_valid', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_trans_valid_name_gin_trgm', 'cmf_trans_valid', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_trigger_code_gin_trgm', 'cmf_trigger', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_trigger_name_gin_trgm', 'cmf_trigger', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_ui_form_code_gin_trgm', 'cmf_ui_form', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_ui_form_name_gin_trgm', 'cmf_ui_form', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_ui_form_field_code_gin_trgm', 'cmf_ui_form_field', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_ui_form_field_name_gin_trgm', 'cmf_ui_form_field', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_ui_form_group_code_gin_trgm', 'cmf_ui_form_group', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_ui_form_group_name_gin_trgm', 'cmf_ui_form_group', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_ui_form_scheme_code_gin_trgm', 'cmf_ui_form_scheme', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_ui_form_scheme_name_gin_trgm', 'cmf_ui_form_scheme', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_ui_form_scheme_rule_code_gin_trgm', 'cmf_ui_form_scheme_rule', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_ui_form_scheme_rule_name_gin_trgm', 'cmf_ui_form_scheme_rule', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_unit_code_gin_trgm', 'cmf_unit', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_unit_name_gin_trgm', 'cmf_unit', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_user_rating_code_gin_trgm', 'cmf_user_rating', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_user_rating_name_gin_trgm', 'cmf_user_rating', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_webhook_code_gin_trgm', 'cmf_webhook', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_webhook_name_gin_trgm', 'cmf_webhook', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_whatsapp_code_gin_trgm', 'cmf_whatsapp', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_whatsapp_name_gin_trgm', 'cmf_whatsapp', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_wiki_code_gin_trgm', 'cmf_wiki', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_wiki_name_gin_trgm', 'cmf_wiki', ['name'], unique=False, postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.create_index('ix_cmf_workflow_code_gin_trgm', 'cmf_workflow', ['code'], unique=False, postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.create_index('ix_cmf_workflow_name_gin_trgm', 'cmf_workflow', ['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_workflow_name_gin_trgm', table_name='cmf_workflow', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_workflow_code_gin_trgm', table_name='cmf_workflow', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_wiki_name_gin_trgm', table_name='cmf_wiki', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_wiki_code_gin_trgm', table_name='cmf_wiki', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_whatsapp_name_gin_trgm', table_name='cmf_whatsapp', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_whatsapp_code_gin_trgm', table_name='cmf_whatsapp', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_webhook_name_gin_trgm', table_name='cmf_webhook', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_webhook_code_gin_trgm', table_name='cmf_webhook', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_user_rating_name_gin_trgm', table_name='cmf_user_rating', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_user_rating_code_gin_trgm', table_name='cmf_user_rating', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_unit_name_gin_trgm', table_name='cmf_unit', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_unit_code_gin_trgm', table_name='cmf_unit', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_ui_form_scheme_rule_name_gin_trgm', table_name='cmf_ui_form_scheme_rule', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_ui_form_scheme_rule_code_gin_trgm', table_name='cmf_ui_form_scheme_rule', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_ui_form_scheme_name_gin_trgm', table_name='cmf_ui_form_scheme', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_ui_form_scheme_code_gin_trgm', table_name='cmf_ui_form_scheme', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_ui_form_group_name_gin_trgm', table_name='cmf_ui_form_group', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_ui_form_group_code_gin_trgm', table_name='cmf_ui_form_group', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_ui_form_field_name_gin_trgm', table_name='cmf_ui_form_field', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_ui_form_field_code_gin_trgm', table_name='cmf_ui_form_field', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_ui_form_name_gin_trgm', table_name='cmf_ui_form', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_ui_form_code_gin_trgm', table_name='cmf_ui_form', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_trigger_name_gin_trgm', table_name='cmf_trigger', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_trigger_code_gin_trgm', table_name='cmf_trigger', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_trans_valid_name_gin_trgm', table_name='cmf_trans_valid', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_trans_valid_code_gin_trgm', table_name='cmf_trans_valid', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_trans_filter_name_gin_trgm', table_name='cmf_trans_filter', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_trans_filter_code_gin_trgm', table_name='cmf_trans_filter', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_trans_action_name_gin_trgm', table_name='cmf_trans_action', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_trans_action_code_gin_trgm', table_name='cmf_trans_action', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_trans_name_gin_trgm', table_name='cmf_trans', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_trans_code_gin_trgm', table_name='cmf_trans', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_timesheets_team_member_name_gin_trgm', table_name='cmf_timesheets_team_member', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_timesheets_team_member_code_gin_trgm', table_name='cmf_timesheets_team_member', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_timesheets_team_name_gin_trgm', table_name='cmf_timesheets_team', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_timesheets_team_code_gin_trgm', table_name='cmf_timesheets_team', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_time_tracker_name_gin_trgm', table_name='cmf_time_tracker', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_time_tracker_code_gin_trgm', table_name='cmf_time_tracker', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_task_res_assign_timephase_name_gin_trgm', table_name='cmf_task_res_assign_timephase', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_task_res_assign_timephase_code_gin_trgm', table_name='cmf_task_res_assign_timephase', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_task_res_assign_name_gin_trgm', table_name='cmf_task_res_assign', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_task_res_assign_code_gin_trgm', table_name='cmf_task_res_assign', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_tag_category_name_gin_trgm', table_name='cmf_tag_category', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_tag_category_code_gin_trgm', table_name='cmf_tag_category', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_tag_code_gin_trgm', table_name='cmf_tag', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_synonym_code_gin_trgm', table_name='cmf_synonym', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_subscription_name_gin_trgm', table_name='cmf_subscription', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_subscription_code_gin_trgm', table_name='cmf_subscription', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_outcoming_order_item_name_gin_trgm', table_name='cmf_stock_outcoming_order_item', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_outcoming_order_item_code_gin_trgm', table_name='cmf_stock_outcoming_order_item', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_operation_item_name_gin_trgm', table_name='cmf_stock_operation_item', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_operation_item_code_gin_trgm', table_name='cmf_stock_operation_item', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_operation_name_gin_trgm', table_name='cmf_stock_operation', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_operation_code_gin_trgm', table_name='cmf_stock_operation', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_move_item_name_gin_trgm', table_name='cmf_stock_move_item', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_move_item_code_gin_trgm', table_name='cmf_stock_move_item', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_menu_group_name_gin_trgm', table_name='cmf_stock_menu_group', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_menu_group_code_gin_trgm', table_name='cmf_stock_menu_group', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_item_name_gin_trgm', table_name='cmf_stock_item', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_item_code_gin_trgm', table_name='cmf_stock_item', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_inventory_item_name_gin_trgm', table_name='cmf_stock_inventory_item', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_inventory_item_code_gin_trgm', table_name='cmf_stock_inventory_item', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_initial_item_name_gin_trgm', table_name='cmf_stock_initial_item', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_initial_item_code_gin_trgm', table_name='cmf_stock_initial_item', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_incoming_order_item_name_gin_trgm', table_name='cmf_stock_incoming_order_item', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_incoming_order_item_code_gin_trgm', table_name='cmf_stock_incoming_order_item', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_name_gin_trgm', table_name='cmf_stock', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_stock_code_gin_trgm', table_name='cmf_stock', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_status_opt_name_gin_trgm', table_name='cmf_status_opt', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_status_code_name_gin_trgm', table_name='cmf_status_code', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_status_code_code_gin_trgm', table_name='cmf_status_code', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_status_name_gin_trgm', table_name='cmf_status', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_staff_control_settings_name_gin_trgm', table_name='cmf_staff_control_settings', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_staff_control_settings_code_gin_trgm', table_name='cmf_staff_control_settings', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_security_level_scheme_name_gin_trgm', table_name='cmf_security_level_scheme', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_security_level_scheme_code_gin_trgm', table_name='cmf_security_level_scheme', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_security_level_rule_name_gin_trgm', table_name='cmf_security_level_rule', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_security_level_rule_code_gin_trgm', table_name='cmf_security_level_rule', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_security_level_name_gin_trgm', table_name='cmf_security_level', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_security_level_code_gin_trgm', table_name='cmf_security_level', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_scheme_wf_rule_name_gin_trgm', table_name='cmf_scheme_wf_rule', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_scheme_wf_rule_code_gin_trgm', table_name='cmf_scheme_wf_rule', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_sale_menu_group_name_gin_trgm', table_name='cmf_sale_menu_group', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_sale_menu_group_code_gin_trgm', table_name='cmf_sale_menu_group', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_sla_trigger_name_gin_trgm', table_name='cmf_s_desk_sla_trigger', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_sla_trigger_code_gin_trgm', table_name='cmf_s_desk_sla_trigger', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_sla_goal_name_gin_trgm', table_name='cmf_s_desk_sla_goal', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_sla_goal_code_gin_trgm', table_name='cmf_s_desk_sla_goal', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_sla_cycle_name_gin_trgm', table_name='cmf_s_desk_sla_cycle', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_sla_cycle_code_gin_trgm', table_name='cmf_s_desk_sla_cycle', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_sla_name_gin_trgm', table_name='cmf_s_desk_sla', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_sla_code_gin_trgm', table_name='cmf_s_desk_sla', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_request_type_name_gin_trgm', table_name='cmf_s_desk_request_type', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_request_type_code_gin_trgm', table_name='cmf_s_desk_request_type', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_request_group_name_gin_trgm', table_name='cmf_s_desk_request_group', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_request_group_code_gin_trgm', table_name='cmf_s_desk_request_group', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_knowlage_category_name_gin_trgm', table_name='cmf_s_desk_knowlage_category', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_s_desk_knowlage_category_code_gin_trgm', table_name='cmf_s_desk_knowlage_category', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_resolution_name_gin_trgm', table_name='cmf_resolution', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_resolution_code_gin_trgm', table_name='cmf_resolution', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_relation_type_name_gin_trgm', table_name='cmf_relation_type', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_relation_type_code_gin_trgm', table_name='cmf_relation_type', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_refbook_name_gin_trgm', table_name='cmf_refbook', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_refbook_code_gin_trgm', table_name='cmf_refbook', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_role_assign_name_gin_trgm', table_name='cmf_project_role_assign', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_role_assign_code_gin_trgm', table_name='cmf_project_role_assign', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_role_name_gin_trgm', table_name='cmf_project_role', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_role_code_gin_trgm', table_name='cmf_project_role', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_perm_scheme_rule_name_gin_trgm', table_name='cmf_project_perm_scheme_rule', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_perm_scheme_rule_code_gin_trgm', table_name='cmf_project_perm_scheme_rule', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_perm_scheme_name_gin_trgm', table_name='cmf_project_perm_scheme', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_perm_scheme_code_gin_trgm', table_name='cmf_project_perm_scheme', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_perm_permission_name_gin_trgm', table_name='cmf_project_perm_permission', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_perm_permission_code_gin_trgm', table_name='cmf_project_perm_permission', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_notify_scheme_rule_name_gin_trgm', table_name='cmf_project_notify_scheme_rule', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_notify_scheme_rule_code_gin_trgm', table_name='cmf_project_notify_scheme_rule', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_notify_scheme_name_gin_trgm', table_name='cmf_project_notify_scheme', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_notify_scheme_code_gin_trgm', table_name='cmf_project_notify_scheme', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_category_name_gin_trgm', table_name='cmf_project_category', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_category_code_gin_trgm', table_name='cmf_project_category', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_project_name_gin_trgm', table_name='cmf_project', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_product_name_gin_trgm', table_name='cmf_product', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_product_code_gin_trgm', table_name='cmf_product', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_print_tmpl_name_gin_trgm', table_name='cmf_print_tmpl', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_print_tmpl_code_gin_trgm', table_name='cmf_print_tmpl', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_price_code_gin_trgm', table_name='cmf_price', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_zadarma_name_gin_trgm', table_name='cmf_plugin_zadarma', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_zadarma_code_gin_trgm', table_name='cmf_plugin_zadarma', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_you_track_name_gin_trgm', table_name='cmf_plugin_you_track', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_you_track_code_gin_trgm', table_name='cmf_plugin_you_track', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_trello_name_gin_trgm', table_name='cmf_plugin_trello', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_trello_code_gin_trgm', table_name='cmf_plugin_trello', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_tracker_api_name_gin_trgm', table_name='cmf_plugin_tracker_api', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_tracker_api_code_gin_trgm', table_name='cmf_plugin_tracker_api', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_telphin_name_gin_trgm', table_name='cmf_plugin_telphin', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_telphin_code_gin_trgm', table_name='cmf_plugin_telphin', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_s_m_s_gate_name_gin_trgm', table_name='cmf_plugin_s_m_s_gate', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_s_m_s_gate_code_gin_trgm', table_name='cmf_plugin_s_m_s_gate', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_mail_box_name_gin_trgm', table_name='cmf_plugin_mail_box', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_mail_box_code_gin_trgm', table_name='cmf_plugin_mail_box', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_jira_name_gin_trgm', table_name='cmf_plugin_jira', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_jira_code_gin_trgm', table_name='cmf_plugin_jira', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_git_name_gin_trgm', table_name='cmf_plugin_git', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_git_code_gin_trgm', table_name='cmf_plugin_git', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_eva_name_gin_trgm', table_name='cmf_plugin_eva', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_eva_code_gin_trgm', table_name='cmf_plugin_eva', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_csv_name_gin_trgm', table_name='cmf_plugin_csv', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_csv_code_gin_trgm', table_name='cmf_plugin_csv', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_confluence_name_gin_trgm', table_name='cmf_plugin_confluence', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_confluence_code_gin_trgm', table_name='cmf_plugin_confluence', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_asana_name_gin_trgm', table_name='cmf_plugin_asana', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_asana_code_gin_trgm', table_name='cmf_plugin_asana', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_name_gin_trgm', table_name='cmf_plugin', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plugin_code_gin_trgm', table_name='cmf_plugin', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plan_name_gin_trgm', table_name='cmf_plan', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_plan_code_gin_trgm', table_name='cmf_plan', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_person_var_name_gin_trgm', table_name='cmf_person_var', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_person_var_code_gin_trgm', table_name='cmf_person_var', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_person_name_gin_trgm', table_name='cmf_person', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_person_code_gin_trgm', table_name='cmf_person', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_perm_publish_policy_name_gin_trgm', table_name='cmf_perm_publish_policy', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_perm_publish_policy_code_gin_trgm', table_name='cmf_perm_publish_policy', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_notepad_name_gin_trgm', table_name='cmf_notepad', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_notepad_code_gin_trgm', table_name='cmf_notepad', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_menu_tree_item_name_gin_trgm', table_name='cmf_menu_tree_item', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_menu_tree_item_code_gin_trgm', table_name='cmf_menu_tree_item', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_menu_tree_name_gin_trgm', table_name='cmf_menu_tree', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_menu_tree_code_gin_trgm', table_name='cmf_menu_tree', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_menu_item_name_gin_trgm', table_name='cmf_menu_item', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_menu_item_code_gin_trgm', table_name='cmf_menu_item', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mailbox_folder_name_gin_trgm', table_name='cmf_mailbox_folder', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mailbox_folder_code_gin_trgm', table_name='cmf_mailbox_folder', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mailbox2_name_gin_trgm', table_name='cmf_mailbox2', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mailbox2_code_gin_trgm', table_name='cmf_mailbox2', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mailbox_name_gin_trgm', table_name='cmf_mailbox', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mailbox_code_gin_trgm', table_name='cmf_mailbox', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mail_template_name_gin_trgm', table_name='cmf_mail_template', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mail_template_code_gin_trgm', table_name='cmf_mail_template', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mail_signature_name_gin_trgm', table_name='cmf_mail_signature', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mail_signature_code_gin_trgm', table_name='cmf_mail_signature', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mail_name_gin_trgm', table_name='cmf_mail', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_mail_code_gin_trgm', table_name='cmf_mail', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_logic_type_code_gin_trgm', table_name='cmf_logic_type', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_location_code_gin_trgm', table_name='cmf_location', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_link_name_gin_trgm', table_name='cmf_link', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_link_code_gin_trgm', table_name='cmf_link', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_license_name_gin_trgm', table_name='cmf_license', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_license_code_gin_trgm', table_name='cmf_license', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_lead_mailbox_name_gin_trgm', table_name='cmf_lead_mailbox', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_lead_mailbox_code_gin_trgm', table_name='cmf_lead_mailbox', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_kanban_board_card_color_rule_name_gin_trgm', table_name='cmf_kanban_board_card_color_rule', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_kanban_board_card_color_rule_code_gin_trgm', table_name='cmf_kanban_board_card_color_rule', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_job_name_gin_trgm', table_name='cmf_job', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_job_code_gin_trgm', table_name='cmf_job', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_invoice_items_code_gin_trgm', table_name='cmf_invoice_items', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_integration_name_gin_trgm', table_name='cmf_integration', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_integration_code_gin_trgm', table_name='cmf_integration', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_import_name_gin_trgm', table_name='cmf_import', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_import_code_gin_trgm', table_name='cmf_import', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_html_scheme_name_gin_trgm', table_name='cmf_html_scheme', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_html_scheme_code_gin_trgm', table_name='cmf_html_scheme', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_global_settings_name_gin_trgm', table_name='cmf_global_settings', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_global_settings_code_gin_trgm', table_name='cmf_global_settings', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_git_repo_code_gin_trgm', table_name='cmf_git_repo', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_git_merge_request_code_gin_trgm', table_name='cmf_git_merge_request', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_git_commit_name_gin_trgm', table_name='cmf_git_commit', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_git_commit_code_gin_trgm', table_name='cmf_git_commit', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_git_branch_code_gin_trgm', table_name='cmf_git_branch', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_gantt_baseline_name_gin_trgm', table_name='cmf_gantt_baseline', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_gantt_baseline_code_gin_trgm', table_name='cmf_gantt_baseline', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_full_search_obj_code_gin_trgm', table_name='cmf_full_search', postgresql_using='gin', postgresql_ops={'obj_code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_form_name_gin_trgm', table_name='cmf_form', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_form_code_gin_trgm', table_name='cmf_form', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_filter_name_gin_trgm', table_name='cmf_filter', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_filter_code_gin_trgm', table_name='cmf_filter', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_export_name_gin_trgm', table_name='cmf_export', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_export_code_gin_trgm', table_name='cmf_export', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_event_type_name_gin_trgm', table_name='cmf_event_type', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_event_type_code_gin_trgm', table_name='cmf_event_type', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_email_template_name_gin_trgm', table_name='cmf_email_template', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_email_template_code_gin_trgm', table_name='cmf_email_template', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_email_list_item_name_gin_trgm', table_name='cmf_email_list_item', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_email_list_item_code_gin_trgm', table_name='cmf_email_list_item', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_email_list_name_gin_trgm', table_name='cmf_email_list', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_email_list_code_gin_trgm', table_name='cmf_email_list', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_document_name_gin_trgm', table_name='cmf_document', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_document_code_gin_trgm', table_name='cmf_document', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_deal_items_name_gin_trgm', table_name='cmf_deal_items', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_deal_items_code_gin_trgm', table_name='cmf_deal_items', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_cust_field_conf_scheme_rule_name_gin_trgm', table_name='cmf_cust_field_conf_scheme_rule', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_cust_field_conf_scheme_rule_code_gin_trgm', table_name='cmf_cust_field_conf_scheme_rule', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_cust_field_conf_scheme_name_gin_trgm', table_name='cmf_cust_field_conf_scheme', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_cust_field_conf_scheme_code_gin_trgm', table_name='cmf_cust_field_conf_scheme', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_cust_field_conf_field_name_gin_trgm', table_name='cmf_cust_field_conf_field', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_cust_field_conf_field_code_gin_trgm', table_name='cmf_cust_field_conf_field', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_cust_field_conf_name_gin_trgm', table_name='cmf_cust_field_conf', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_cust_field_conf_code_gin_trgm', table_name='cmf_cust_field_conf', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_cust_field_name_gin_trgm', table_name='cmf_cust_field', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_cust_field_code_gin_trgm', table_name='cmf_cust_field', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_contract_name_gin_trgm', table_name='cmf_contract', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_contract_code_gin_trgm', table_name='cmf_contract', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_client_job_name_gin_trgm', table_name='cmf_client_job', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_client_job_code_gin_trgm', table_name='cmf_client_job', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_chat_message_name_gin_trgm', table_name='cmf_chat_message', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_chat_message_code_gin_trgm', table_name='cmf_chat_message', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_card_code_gin_trgm', table_name='cmf_card', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_calendar_work_week_interval_name_gin_trgm', table_name='cmf_calendar_work_week_interval', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_calendar_work_week_interval_code_gin_trgm', table_name='cmf_calendar_work_week_interval', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_calendar_work_week_name_gin_trgm', table_name='cmf_calendar_work_week', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_calendar_work_week_code_gin_trgm', table_name='cmf_calendar_work_week', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_calendar_exclude_interval_name_gin_trgm', table_name='cmf_calendar_exclude_interval', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_calendar_exclude_interval_code_gin_trgm', table_name='cmf_calendar_exclude_interval', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_calendar_exclude_name_gin_trgm', table_name='cmf_calendar_exclude', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_calendar_exclude_code_gin_trgm', table_name='cmf_calendar_exclude', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_calendar_name_gin_trgm', table_name='cmf_calendar', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_calendar_code_gin_trgm', table_name='cmf_calendar', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_business_sector_name_gin_trgm', table_name='cmf_business_sector', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_business_sector_code_gin_trgm', table_name='cmf_business_sector', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_balance_operation_name_gin_trgm', table_name='cmf_balance_operation', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_balance_operation_code_gin_trgm', table_name='cmf_balance_operation', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_balance_name_gin_trgm', table_name='cmf_balance', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_balance_code_gin_trgm', table_name='cmf_balance', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_automation_ui_form_name_gin_trgm', table_name='cmf_automation_ui_form', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_automation_ui_form_code_gin_trgm', table_name='cmf_automation_ui_form', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_automation_crud_trigger_name_gin_trgm', table_name='cmf_automation_crud_trigger', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_automation_crud_trigger_code_gin_trgm', table_name='cmf_automation_crud_trigger', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_automation_cron_trigger_name_gin_trgm', table_name='cmf_automation_cron_trigger', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_automation_cron_trigger_code_gin_trgm', table_name='cmf_automation_cron_trigger', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_auth_open_id_plugin_name_gin_trgm', table_name='cmf_auth_open_id_plugin', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_auth_open_id_plugin_code_gin_trgm', table_name='cmf_auth_open_id_plugin', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_auth_ldap_plugin_name_gin_trgm', table_name='cmf_auth_ldap_plugin', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_auth_ldap_plugin_code_gin_trgm', table_name='cmf_auth_ldap_plugin', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_asset_type_name_gin_trgm', table_name='cmf_asset_type', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_asset_type_code_gin_trgm', table_name='cmf_asset_type', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_asset_scheme_name_gin_trgm', table_name='cmf_asset_scheme', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_approve_group_name_gin_trgm', table_name='cmf_approve_group', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_approve_group_code_gin_trgm', table_name='cmf_approve_group', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_answer_template_name_gin_trgm', table_name='cmf_answer_template', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_answer_template_code_gin_trgm', table_name='cmf_answer_template', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_activity_name_gin_trgm', table_name='cmf_activity', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_active_entity_filter_name_gin_trgm', table_name='cmf_active_entity_filter', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_active_entity_filter_code_gin_trgm', table_name='cmf_active_entity_filter', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_access_rule_name_gin_trgm', table_name='cmf_access_rule', postgresql_using='gin', postgresql_ops={'name': 'gin_trgm_ops'})
    op.drop_index('ix_cmf_access_rule_code_gin_trgm', table_name='cmf_access_rule', postgresql_using='gin', postgresql_ops={'code': 'gin_trgm_ops'})
    # ### end Alembic commands ###
