dev/core#2528 Set Modified date to be current timestamp in civicrm_contribution_recur...
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 15 Apr 2021 01:28:55 +0000 (11:28 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 15 Apr 2021 01:28:55 +0000 (11:28 +1000)
CRM/Upgrade/Incremental/php/FiveThirtySeven.php

index cc11c3bd26d3ecb3a60e0f0268877cd04b6feaf6..f87d2effe6335d32411d03822a3ed8a44c9efe4f 100644 (file)
@@ -129,6 +129,7 @@ class CRM_Upgrade_Incremental_php_FiveThirtySeven extends CRM_Upgrade_Incrementa
    */
   public static function updateDBDefaultsForContributionRecur(CRM_Queue_TaskContext $ctx): bool {
     $pendingID = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_ContributionRecur', 'contribution_status_id', 'Pending');
+    CRM_Core_DAO::executeQuery("UPDATE `civicrm_contribution_recur` SET `modified_date` = CURRENT_TIMESTAMP() WHERE `modified_date` IS NULL");
     CRM_Core_DAO::executeQuery("
       ALTER TABLE `civicrm_contribution_recur`
       MODIFY COLUMN `start_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'The date the first scheduled recurring contribution occurs.',