CRM-15086 upgrade fix
authormonishdeb <monish.deb@webaccessglobal.com>
Fri, 5 Sep 2014 08:17:08 +0000 (13:47 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Fri, 5 Sep 2014 08:17:08 +0000 (13:47 +0530)
----------------------------------------
* CRM-15086: civicrm_data.tpl: batch types, status, etc option values were mistakenly put in {ts}
  https://issues.civicrm.org/jira/browse/CRM-15086

CRM/Upgrade/Incremental/sql/4.5.beta9.mysql.tpl

index dc34c88a3b23cfa4ee4223b6a8392d55cb020a7d..8bfdb728ff6b4a765c8e1a7fd2e0c8283704b83a 100644 (file)
@@ -24,4 +24,13 @@ WHERE ceft.entity_table = 'civicrm_contribution'
 GROUP BY ceft.entity_id ) as temp ON temp.trxn_id = cft.id
 INNER JOIN civicrm_contribution cc ON cc.id = temp.contribution_id
 AND cc.payment_instrument_id <> cft.payment_instrument_id
-SET cft.payment_instrument_id = cc.payment_instrument_id;
\ No newline at end of file
+SET cft.payment_instrument_id = cc.payment_instrument_id;
+
+--CRM-15086
+SELECT @option_group_id_batch_status := id FROM civicrm_option_group WHERE name = 'batch_status';
+
+UPDATE civicrm_option_value SET name = 'Open' WHERE value = 1 AND option_group_id = @option_group_id_batch_status;
+UPDATE civicrm_option_value SET name = 'Closed' WHERE value = 2 AND option_group_id = @option_group_id_batch_status;
+UPDATE civicrm_option_value SET name = 'Data Entry' WHERE value = 3 AND option_group_id = @option_group_id_batch_status;
+UPDATE civicrm_option_value SET name = 'Reopened' WHERE value = 4 AND option_group_id = @option_group_id_batch_status;
+UPDATE civicrm_option_value SET name = 'Exported' WHERE value = 5 AND option_group_id = @option_group_id_batch_status;