Skip to content
Snippets Groups Projects
Commit e7d940b2 authored by lobo's avatar lobo
Browse files

CRM-12580

----------------------------------------
* CRM-12580: Add index to sort_name / is_deleted to civicrm_contact
  http://issues.civicrm.org/jira/browse/CRM-12580
parent fdb0d169
No related branches found
No related tags found
No related merge requests found
......@@ -13,4 +13,8 @@ VALUES
INSERT INTO civicrm_setting
(domain_id, contact_id, is_domain, group_name, name, value)
VALUES
({$domainID}, NULL, 1, 'Mailing Preferences', 'write_activity_record', '{serialize}1{/serialize}');
\ No newline at end of file
({$domainID}, NULL, 1, 'Mailing Preferences', 'write_activity_record', '{serialize}1{/serialize}');
-- CRM-12580
ALTER TABLE civicrm_contact ADD INDEX index_is_deleted_sort_name(is_deleted, sort_name, id);
ALTER TABLE civicrm_contact DROP INDEX index_is_deleted;
This diff is collapsed.
......@@ -638,6 +638,14 @@
<name>index_is_deleted</name>
<fieldName>is_deleted</fieldName>
<add>3.2</add>
<drop>4.4</drop>
</index>
<index>
<name>index_is_deleted_sort_name</name>
<fieldName>is_deleted</fieldName>
<fieldName>sort_name</fieldName>
<fieldName>id</fieldName>
<add>4.4</add>
</index>
<field>
<name>created_date</name>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment