public function upgrade_4_7_2($rev) {
$this->addTask('Fix Index on civicrm_financial_item combined entity_id + entity_table', 'addCombinedIndexFinancialItemEntityIDEntityType');
$this->addTask('enable financial account relationships for chargeback & refund', 'addRefundAndChargeBackAccountsIfNotExist');
+ $this->addTask('Add Index to civicrm_contribution.source', 'addIndexContributionSource');
}
/**
return TRUE;
}
+ /**
+ * CRM-17999 Add index to civicrm_contribution.source.
+ *
+ * @param \CRM_Queue_TaskContext $ctx
+ *
+ * @return bool
+ */
+ public function addIndexContributionSource(CRM_Queue_TaskContext $ctx) {
+ CRM_Core_BAO_SchemaHandler::createIndexes(array('civicrm_contribution' => array('source')));
+ return TRUE;
+ }
+
}
<type>Text</type>
</html>
</field>
+ <index>
+ <name>index_source</name>
+ <fieldName>source</fieldName>
+ <add>4.7</add>
+ </index>
<field>
<name>amount_level</name>
<title>Amount Label</title>