Skip to content
Snippets Groups Projects
Commit 45bc8c33 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

add index for civicrm_activity_contact

parent c3cfb269
Branches
Tags
No related merge requests found
......@@ -22,4 +22,7 @@ LEFT JOIN civicrm_entity_financial_trxn ceft ON ceft.financial_trxn_id = cft.id
LEFT JOIN civicrm_entity_financial_trxn ceft_financial_item ON ceft_financial_item.financial_trxn_id = cft.id
LEFT JOIN civicrm_financial_item cfi ON cfi.id = ceft_financial_item.entity_id
SET to_financial_account_id = @accountrecievable, cfi.status_id = @financialstatus
WHERE ceft.entity_table = 'civicrm_contribution' AND ceft_financial_item.entity_table = 'civicrm_financial_item' AND cft.status_id = @inprogressstatus AND cfi.status_id IS NULL;
\ No newline at end of file
WHERE ceft.entity_table = 'civicrm_contribution' AND ceft_financial_item.entity_table = 'civicrm_financial_item' AND cft.status_id = @inprogressstatus AND cfi.status_id IS NULL;
{* CRM-14167 *}
ALTER TABLE civicrm_activity_contact ADD INDEX index_record_type ( activity_id, record_type_id );
\ No newline at end of file
......@@ -68,5 +68,10 @@
<unique>true</unique>
<add>4.4</add>
</index>
<index>
<name>index_record_type</name>
<fieldName>activity_id</fieldName>
<fieldName>record_type_id</fieldName>
<add>4.4</add>
</index>
</table>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment