*
* Generated from xml/schema/CRM/Contribute/ContributionRecur.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6c94785d608dc72c00b663ee8ad4e180)
+ * (GenCodeChecksum:5f08744178821ce074d21fe4cdddbdaa)
*/
/**
/**
* Last updated date for this record. mostly the last time a payment was received
*
- * @var datetime
+ * @var timestamp
*/
public $modified_date;
],
'contribution_recur_modified_date' => [
'name' => 'modified_date',
- 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
+ 'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Modified Date'),
'description' => ts('Last updated date for this record. mostly the last time a payment was received'),
'where' => 'civicrm_contribution_recur.modified_date',
- 'default' => 'CURRENT_TIMESTAMP',
+ 'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
UPDATE civicrm_msg_template SET is_reserved = 0 WHERE is_reserved IS NULL;
ALTER TABLE civicrm_msg_template
MODIFY COLUMN `is_reserved` tinyint(4) DEFAULT 0 COMMENT 'is this the reserved message template which we ship for the workflow referenced by workflow_id?';
+
+{* https://github.com/civicrm/civicrm-core/pull/21472 *}
+ALTER TABLE civicrm_contribution_recur MODIFY COLUMN modified_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Last updated date for this record. mostly the last time a payment was received';
<field>
<name>modified_date</name>
<title>Modified Date</title>
- <type>datetime</type>
- <default>CURRENT_TIMESTAMP</default>
+ <type>timestamp</type>
+ <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP</default>
<comment>Last updated date for this record. mostly the last time a payment was received</comment>
<add>1.6</add>
<html>