CRM-17752 add index to civicrm_financial_trxn.trxn_id
authoreileen <emcnaughton@wikimedia.org>
Mon, 4 Jan 2016 21:40:11 +0000 (10:40 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 4 Jan 2016 21:40:41 +0000 (10:40 +1300)
https://issues.civicrm.org/jira/browse/CRM-17752

CRM/Upgrade/Incremental/sql/4.7.beta6.mysql.tpl
xml/schema/Financial/FinancialTrxn.xml

index ead67d5eea3f93faadf183d8ed198902acc48302..23d481cf685d753d26d27384ba92e807aa232797 100644 (file)
@@ -13,3 +13,7 @@ AFTER is_multiple_registrations;
 UPDATE civicrm_event
 SET max_additional_participants = 9
 WHERE is_multiple_registrations = 1;
+
+-- CRM-17752
+ALTER TABLE `civicrm_financial_trxn`
+ADD INDEX `UI_ftrxn_trxn_id` (`trxn_id`);
index a681beec670e97a4618ded52c54de736101dc558..0b26359252ae97c629d411146ec0ae66da88d515 100755 (executable)
     <title>Transaction ID</title>
     <type>varchar</type>
     <length>255</length>
-    <comment>user-specified unique processor transaction id, bank id + trans id,... depending on payment_method</comment>
+    <comment>Transaction id supplied by external processor. This may not be unique.</comment>
     <add>1.3</add>
   </field>
+  <index>
+    <name>UI_ftrxn_trxn_id</name>
+    <fieldName>trxn_id</fieldName>
+    <add>4.7</add>
+  </index>
   <field>
     <name>trxn_result_code</name>
     <title>Transaction result Code</title>