CRM-15203 - Typo Fix
authoratif-shaikh <shaikh388@gmail.com>
Tue, 6 Jan 2015 12:36:36 +0000 (18:06 +0530)
committeratif-shaikh <shaikh388@gmail.com>
Tue, 6 Jan 2015 12:36:36 +0000 (18:06 +0530)
----------------------------------------
* CRM-15203: Recurring contributions don't create MembershipPayment records
  https://issues.civicrm.org/jira/browse/CRM-15203

CRM/Upgrade/Incremental/sql/4.6.alpha1.mysql.tpl

index ac2901af34decfe793cdd0a3dd66a7b954e4c721..a02419c48940863b97785f219b34704bcd05b604 100755 (executable)
@@ -134,5 +134,5 @@ UPDATE `civicrm_state_province` SET `name`='DKI Jakarta' WHERE `id` = 3083;
 UPDATE `civicrm_state_province` SET `name`='DI Yogyakarta' WHERE `id` = 3085;
 UPDATE `civicrm_state_province` SET `abbreviation`='KI' WHERE `id` = 3066;
 
--- CRM-15203 Recurring contributions don't create MembershipPayment records
+-- CRM-15203 Handle MembershipPayment records while upgrade
 INSERT INTO civicrm_membership_payment (contribution_id, membership_id) select cc.id, cm.id FROM civicrm_contribution cc LEFT JOIN civicrm_membership_payment cmp ON cc.id = cmp.contribution_id LEFT JOIN civicrm_membership cm ON cc.contribution_recur_id = cm.contribution_recur_id WHERE cc.contribution_recur_id IS NOT NULL AND cmp.id IS NULL AND cm.id IS NOT NULL;