diff --git a/core/trunk/sql/index_creation.sql b/core/trunk/sql/index_creation.sql index 43c5432bda737f75082452750bfc021853fe93f1..124ddb18b03d1fd53f2c7682e8309be9af0f1bb0 100644 --- a/core/trunk/sql/index_creation.sql +++ b/core/trunk/sql/index_creation.sql @@ -10,23 +10,6 @@ CREATE INDEX custom_t15_idx ON res_letterbox (custom_t15); CREATE INDEX res_letterbox_docserver_id_idx ON res_letterbox (docserver_id); CREATE INDEX res_letterbox_filename_idx ON res_letterbox (filename); --- res_business -CREATE INDEX business_type_id_idx ON res_business (type_id); -CREATE INDEX business_typist_idx ON res_business (typist); -CREATE INDEX business_doc_date_idx ON res_business (doc_date); -CREATE INDEX business_folders_system_id_idx ON res_business (folders_system_id); -CREATE INDEX business_status_idx ON res_business (status); -CREATE INDEX business_destination_idx ON res_business (destination); -CREATE INDEX business_dest_user_idx ON res_business (dest_user); -CREATE INDEX business_custom_t1_idx ON res_business (custom_t1); -CREATE INDEX business_custom_t2_idx ON res_business (custom_t2); -CREATE INDEX business_custom_t3_idx ON res_business (custom_t3); -CREATE INDEX business_custom_t4_idx ON res_business (custom_t4); -CREATE INDEX business_custom_t5_idx ON res_business (custom_t5); -CREATE INDEX business_custom_t6_idx ON res_business (custom_t6); -CREATE INDEX res_business_docserver_id_idx ON res_business (docserver_id); -CREATE INDEX res_business_filename_idx ON res_business (filename); - -- res_attachments CREATE INDEX res_id_master_idx ON res_attachments (res_id_master); @@ -39,11 +22,6 @@ CREATE INDEX dest_user_id_idx ON mlb_coll_ext (dest_user_id); CREATE INDEX admission_date_idx ON mlb_coll_ext (admission_date); CREATE INDEX process_limit_date_idx ON mlb_coll_ext (process_limit_date); --- business_coll_ext -CREATE INDEX business_category_id_idx ON business_coll_ext (category_id); -CREATE INDEX business_contact_id ON business_coll_ext (contact_id); -CREATE INDEX business_total_sum ON business_coll_ext (total_sum); - -- listinstance CREATE INDEX res_id_listinstance_idx ON listinstance (res_id); CREATE INDEX listinstance_coll_id_idx ON listinstance (coll_id); @@ -54,9 +32,9 @@ CREATE INDEX item_mode_idx ON listinstance (item_mode); CREATE INDEX listinstance_difflist_type_idx ON listinstance (difflist_type); -- contacts -CREATE INDEX firstname_contacts_idx ON contacts (firstname); -CREATE INDEX lastname_contacts_idx ON contacts (lastname); -CREATE INDEX society_idx ON contacts (society); +CREATE INDEX firstname_contacts_idx ON contacts_v2 (firstname); +CREATE INDEX lastname_contacts_idx ON contacts_v2 (lastname); +CREATE INDEX society_idx ON contacts_v2 (society); -- doctypes_first_level CREATE INDEX doctypes_first_level_label_idx ON doctypes_first_level (doctypes_first_level_label);