diff --git a/CRM/Activity/DAO/Activity.php b/CRM/Activity/DAO/Activity.php index 5b099160668d..06c26b6b997a 100644 --- a/CRM/Activity/DAO/Activity.php +++ b/CRM/Activity/DAO/Activity.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Activity/Activity.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a530f1fb1a27c5a15b5d138732b4c581) + * (GenCodeChecksum:eca2f832bafaf0b52fc708140d9acac8) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -195,6 +195,18 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO { * @var boolean */ public $is_star; + /** + * When was the activity was created. + * + * @var timestamp + */ + public $created_date; + /** + * When was the activity (or closely related entity) was created or modified or deleted. + * + * @var timestamp + */ + public $modified_date; /** * Class constructor. */ @@ -642,6 +654,38 @@ static function &fields() { 'bao' => 'CRM_Activity_BAO_Activity', 'localizable' => 0, ) , + 'created_date' => array( + 'name' => 'created_date', + 'type' => CRM_Utils_Type::T_TIMESTAMP, + 'title' => ts('Created Date') , + 'description' => 'When was the activity was created.', + 'required' => false, + 'export' => true, + 'where' => 'civicrm_activity.created_date', + 'headerPattern' => '', + 'dataPattern' => '', + 'default' => 'NULL', + 'table_name' => 'civicrm_activity', + 'entity' => 'Activity', + 'bao' => 'CRM_Activity_BAO_Activity', + 'localizable' => 0, + ) , + 'modified_date' => array( + 'name' => 'modified_date', + 'type' => CRM_Utils_Type::T_TIMESTAMP, + 'title' => ts('Modified Date') , + 'description' => 'When was the activity (or closely related entity) was created or modified or deleted.', + 'required' => false, + 'export' => true, + 'where' => 'civicrm_activity.modified_date', + 'headerPattern' => '', + 'dataPattern' => '', + 'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP', + 'table_name' => 'civicrm_activity', + 'entity' => 'Activity', + 'bao' => 'CRM_Activity_BAO_Activity', + 'localizable' => 0, + ) , ); CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']); } diff --git a/CRM/Case/DAO/Case.php b/CRM/Case/DAO/Case.php index dd1bfe3b027b..d9a7c3481174 100644 --- a/CRM/Case/DAO/Case.php +++ b/CRM/Case/DAO/Case.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Case/Case.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e45e7e2a53a945c4659cf393410a9d7a) + * (GenCodeChecksum:7642a118dfb9adbd7ed8a27127c1ee73) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -97,6 +97,18 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO { * @var boolean */ public $is_deleted; + /** + * When was the case was created. + * + * @var timestamp + */ + public $created_date; + /** + * When was the case (or closely related entity) was created or modified or deleted. + * + * @var timestamp + */ + public $modified_date; /** * Class constructor. */ @@ -275,6 +287,38 @@ static function &fields() { 'bao' => 'CRM_Case_BAO_Case', 'localizable' => 0, ) , + 'created_date' => array( + 'name' => 'created_date', + 'type' => CRM_Utils_Type::T_TIMESTAMP, + 'title' => ts('Created Date') , + 'description' => 'When was the case was created.', + 'required' => false, + 'export' => true, + 'where' => 'civicrm_case.created_date', + 'headerPattern' => '', + 'dataPattern' => '', + 'default' => 'NULL', + 'table_name' => 'civicrm_case', + 'entity' => 'Case', + 'bao' => 'CRM_Case_BAO_Case', + 'localizable' => 0, + ) , + 'modified_date' => array( + 'name' => 'modified_date', + 'type' => CRM_Utils_Type::T_TIMESTAMP, + 'title' => ts('Modified Date') , + 'description' => 'When was the case (or closely related entity) was created or modified or deleted.', + 'required' => false, + 'export' => true, + 'where' => 'civicrm_case.modified_date', + 'headerPattern' => '', + 'dataPattern' => '', + 'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP', + 'table_name' => 'civicrm_case', + 'entity' => 'Case', + 'bao' => 'CRM_Case_BAO_Case', + 'localizable' => 0, + ) , ); CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']); } diff --git a/xml/schema/Activity/Activity.xml b/xml/schema/Activity/Activity.xml index 5c5d013bcca7..f3c2bb35cd0c 100644 --- a/xml/schema/Activity/Activity.xml +++ b/xml/schema/Activity/Activity.xml @@ -463,4 +463,22 @@ /(activity.)?(star|favorite)/i 4.7 + + created_date + timestamp + When was the activity was created. + false + true + NULL + 4.7 + + + modified_date + timestamp + When was the activity (or closely related entity) was created or modified or deleted. + false + true + CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP + 4.7 + diff --git a/xml/schema/Case/Case.xml b/xml/schema/Case/Case.xml index 37d19180771f..1b2941aebbfd 100644 --- a/xml/schema/Case/Case.xml +++ b/xml/schema/Case/Case.xml @@ -191,4 +191,22 @@ is_deleted 2.2 + + created_date + timestamp + When was the case was created. + false + true + NULL + 4.7 + + + modified_date + timestamp + When was the case (or closely related entity) was created or modified or deleted. + false + true + CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP + 4.7 +