diff --git a/CRM/Core/DAO/AllCoreTables.data.php b/CRM/Core/DAO/AllCoreTables.data.php index 94f90424a2e8..469a0a6e00f0 100644 --- a/CRM/Core/DAO/AllCoreTables.data.php +++ b/CRM/Core/DAO/AllCoreTables.data.php @@ -24,7 +24,7 @@ | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ */ -// (GenCodeChecksum:de6dc96f4442bc90970f8e8c26b1c802) +// (GenCodeChecksum:6fb21dc5fcac8590c2ab3dc8b140e034) return array( 'CRM_Core_DAO_AddressFormat' => array( 'name' => 'AddressFormat', diff --git a/CRM/Core/DAO/Cache.php b/CRM/Core/DAO/Cache.php index c0f7a4c2f3c3..805ba4577241 100644 --- a/CRM/Core/DAO/Cache.php +++ b/CRM/Core/DAO/Cache.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Cache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:f7e211585872f6ee2e8492ea79bbb22a) + * (GenCodeChecksum:7e57800355db0e3aa11c15d6c73bf9a2) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -82,13 +82,13 @@ class CRM_Core_DAO_Cache extends CRM_Core_DAO { /** * When was the cache item created * - * @var datetime + * @var timestamp */ public $created_date; /** * When should the cache item expire * - * @var datetime + * @var timestamp */ public $expired_date; /** @@ -184,9 +184,10 @@ static function &fields() { ) , 'created_date' => array( 'name' => 'created_date', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Created Date') , 'description' => 'When was the cache item created', + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_cache', 'entity' => 'Cache', 'bao' => 'CRM_Core_BAO_Cache', @@ -194,9 +195,11 @@ static function &fields() { ) , 'expired_date' => array( 'name' => 'expired_date', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Expired Date') , 'description' => 'When should the cache item expire', + 'required' => false, + 'default' => 'NULL', 'table_name' => 'civicrm_cache', 'entity' => 'Cache', 'bao' => 'CRM_Core_BAO_Cache', diff --git a/CRM/Core/DAO/Job.php b/CRM/Core/DAO/Job.php index 18149b5428f0..8a5af2af35dc 100644 --- a/CRM/Core/DAO/Job.php +++ b/CRM/Core/DAO/Job.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Job.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c3340527b2d2cb17211eba848371b469) + * (GenCodeChecksum:ec2775b0ba09eb61d32f1565ebbaf4f8) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -71,7 +71,7 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO { /** * When was this cron entry last run * - * @var datetime + * @var timestamp */ public $last_run; /** @@ -194,9 +194,10 @@ static function &fields() { ) , 'last_run' => array( 'name' => 'last_run', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Last Run') , 'description' => 'When was this cron entry last run', + 'required' => false, 'default' => 'NULL', 'table_name' => 'civicrm_job', 'entity' => 'Job', diff --git a/CRM/Mailing/DAO/Mailing.php b/CRM/Mailing/DAO/Mailing.php index b3f9bc0ec654..d9c55517f29d 100644 --- a/CRM/Mailing/DAO/Mailing.php +++ b/CRM/Mailing/DAO/Mailing.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Mailing.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:22b978860c196afa0de69fab862907e8) + * (GenCodeChecksum:9a7cf33adcdee2e83d5fe1b5a28186cb) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -207,7 +207,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO { /** * Date and time this mailing was created. * - * @var datetime + * @var timestamp */ public $created_date; /** @@ -219,7 +219,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO { /** * Date and time this mailing was scheduled. * - * @var datetime + * @var timestamp */ public $scheduled_date; /** @@ -231,7 +231,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO { /** * Date and time this mailing was approved. * - * @var datetime + * @var timestamp */ public $approval_date; /** @@ -669,15 +669,18 @@ static function &fields() { ) , 'created_date' => array( 'name' => 'created_date', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Mailing Created Date') , 'description' => 'Date and time this mailing was created.', + 'required' => false, + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_mailing', 'entity' => 'Mailing', 'bao' => 'CRM_Mailing_BAO_Mailing', 'localizable' => 0, 'html' => array( 'type' => 'Select Date', + 'formatType' => 'activityDateTime', ) , ) , 'scheduled_id' => array( @@ -693,13 +696,19 @@ static function &fields() { ) , 'scheduled_date' => array( 'name' => 'scheduled_date', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Mailing Scheduled Date') , 'description' => 'Date and time this mailing was scheduled.', + 'required' => false, + 'default' => 'NULL', 'table_name' => 'civicrm_mailing', 'entity' => 'Mailing', 'bao' => 'CRM_Mailing_BAO_Mailing', 'localizable' => 0, + 'html' => array( + 'type' => 'Select Date', + 'formatType' => 'activityDateTime', + ) , ) , 'approver_id' => array( 'name' => 'approver_id', @@ -714,13 +723,19 @@ static function &fields() { ) , 'approval_date' => array( 'name' => 'approval_date', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Mailing Approved Date') , 'description' => 'Date and time this mailing was approved.', + 'required' => false, + 'default' => 'NULL', 'table_name' => 'civicrm_mailing', 'entity' => 'Mailing', 'bao' => 'CRM_Mailing_BAO_Mailing', 'localizable' => 0, + 'html' => array( + 'type' => 'Select Date', + 'formatType' => 'activityDateTime', + ) , ) , 'approval_status_id' => array( 'name' => 'approval_status_id', diff --git a/CRM/Mailing/DAO/MailingAB.php b/CRM/Mailing/DAO/MailingAB.php index 71a82aa6557a..b3997d94fb20 100644 --- a/CRM/Mailing/DAO/MailingAB.php +++ b/CRM/Mailing/DAO/MailingAB.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/MailingAB.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:fea3382fd8611956ff04827237800b49) + * (GenCodeChecksum:12d9514d27712e3d9ad545ca6c2bfe91) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -127,7 +127,7 @@ class CRM_Mailing_DAO_MailingAB extends CRM_Core_DAO { /** * When was this item created * - * @var datetime + * @var timestamp */ public $created_date; /** @@ -308,9 +308,11 @@ static function &fields() { ) , 'created_date' => array( 'name' => 'created_date', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('AB Test Created Date') , 'description' => 'When was this item created', + 'required' => false, + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_mailing_abtest', 'entity' => 'MailingAB', 'bao' => 'CRM_Mailing_BAO_MailingAB', diff --git a/CRM/Mailing/DAO/MailingJob.php b/CRM/Mailing/DAO/MailingJob.php index c0714bc8829e..ecdbe4705e77 100644 --- a/CRM/Mailing/DAO/MailingJob.php +++ b/CRM/Mailing/DAO/MailingJob.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/MailingJob.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c08c4d0fc52564ca707e07af4649231c) + * (GenCodeChecksum:51449e1b36d9d248712f346f20c9e446) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -64,19 +64,19 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO { /** * date on which this job was scheduled. * - * @var datetime + * @var timestamp */ public $scheduled_date; /** * date on which this job was started. * - * @var datetime + * @var timestamp */ public $start_date; /** * date on which this job ended. * - * @var datetime + * @var timestamp */ public $end_date; /** @@ -169,9 +169,11 @@ static function &fields() { ) , 'scheduled_date' => array( 'name' => 'scheduled_date', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Mailing Scheduled Date') , 'description' => 'date on which this job was scheduled.', + 'required' => false, + 'default' => 'NULL', 'table_name' => 'civicrm_mailing_job', 'entity' => 'MailingJob', 'bao' => 'CRM_Mailing_BAO_MailingJob', @@ -179,9 +181,11 @@ static function &fields() { ) , 'start_date' => array( 'name' => 'start_date', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Mailing Job Start Date') , 'description' => 'date on which this job was started.', + 'required' => false, + 'default' => 'NULL', 'table_name' => 'civicrm_mailing_job', 'entity' => 'MailingJob', 'bao' => 'CRM_Mailing_BAO_MailingJob', @@ -189,9 +193,11 @@ static function &fields() { ) , 'end_date' => array( 'name' => 'end_date', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Mailing Job End Date') , 'description' => 'date on which this job ended.', + 'required' => false, + 'default' => 'NULL', 'table_name' => 'civicrm_mailing_job', 'entity' => 'MailingJob', 'bao' => 'CRM_Mailing_BAO_MailingJob', diff --git a/CRM/Mailing/DAO/Spool.php b/CRM/Mailing/DAO/Spool.php index 026d2ff81bcf..f463bb7f9062 100644 --- a/CRM/Mailing/DAO/Spool.php +++ b/CRM/Mailing/DAO/Spool.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Spool.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1062bf7f253de6cdb25f4a434249b050) + * (GenCodeChecksum:8cdc46330195fed32b15c2560dee858d) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -82,13 +82,13 @@ class CRM_Mailing_DAO_Spool extends CRM_Core_DAO { /** * date on which this job was added. * - * @var datetime + * @var timestamp */ public $added_at; /** * date on which this job was removed. * - * @var datetime + * @var timestamp */ public $removed_at; /** @@ -174,9 +174,11 @@ static function &fields() { ) , 'added_at' => array( 'name' => 'added_at', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Added') , 'description' => 'date on which this job was added.', + 'required' => false, + 'default' => 'NULL', 'table_name' => 'civicrm_mailing_spool', 'entity' => 'Spool', 'bao' => 'CRM_Mailing_BAO_Spool', @@ -184,9 +186,11 @@ static function &fields() { ) , 'removed_at' => array( 'name' => 'removed_at', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Removed') , 'description' => 'date on which this job was removed.', + 'required' => false, + 'default' => 'NULL', 'table_name' => 'civicrm_mailing_spool', 'entity' => 'Spool', 'bao' => 'CRM_Mailing_BAO_Spool', diff --git a/CRM/Mailing/Event/DAO/Bounce.php b/CRM/Mailing/Event/DAO/Bounce.php index 4d20e61b53e4..4da0c9b08398 100644 --- a/CRM/Mailing/Event/DAO/Bounce.php +++ b/CRM/Mailing/Event/DAO/Bounce.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Bounce.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b3ece7fb5a8c702f3a9c8e4bef1a38ca) + * (GenCodeChecksum:c63363ca2be2a2fb9eb090786bdf0fa3) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -76,7 +76,7 @@ class CRM_Mailing_Event_DAO_Bounce extends CRM_Core_DAO { /** * When this bounce event occurred. * - * @var datetime + * @var timestamp */ public $time_stamp; /** @@ -162,10 +162,11 @@ static function &fields() { ) , 'time_stamp' => array( 'name' => 'time_stamp', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Timestamp') , 'description' => 'When this bounce event occurred.', 'required' => true, + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_mailing_event_bounce', 'entity' => 'Bounce', 'bao' => 'CRM_Mailing_Event_BAO_Bounce', diff --git a/CRM/Mailing/Event/DAO/Confirm.php b/CRM/Mailing/Event/DAO/Confirm.php index c31c0f232be4..4afbbe3f56c0 100644 --- a/CRM/Mailing/Event/DAO/Confirm.php +++ b/CRM/Mailing/Event/DAO/Confirm.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Confirm.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:34fbb1cde41160b56cd12dc74fd1056b) + * (GenCodeChecksum:f4259bbb8f00037fd48b242a332dcbc0) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -64,7 +64,7 @@ class CRM_Mailing_Event_DAO_Confirm extends CRM_Core_DAO { /** * When this confirmation event occurred. * - * @var datetime + * @var timestamp */ public $time_stamp; /** @@ -120,10 +120,11 @@ static function &fields() { ) , 'time_stamp' => array( 'name' => 'time_stamp', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Confirm Timestamp') , 'description' => 'When this confirmation event occurred.', 'required' => true, + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_mailing_event_confirm', 'entity' => 'Confirm', 'bao' => 'CRM_Mailing_Event_BAO_Confirm', diff --git a/CRM/Mailing/Event/DAO/Delivered.php b/CRM/Mailing/Event/DAO/Delivered.php index 6c1ec8bb315f..1489e5d87933 100644 --- a/CRM/Mailing/Event/DAO/Delivered.php +++ b/CRM/Mailing/Event/DAO/Delivered.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Delivered.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5d91312ebe18853291f2f72c8d486ca4) + * (GenCodeChecksum:f5c02a90e7ec94814797559e9080c96a) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -64,7 +64,7 @@ class CRM_Mailing_Event_DAO_Delivered extends CRM_Core_DAO { /** * When this delivery event occurred. * - * @var datetime + * @var timestamp */ public $time_stamp; /** @@ -120,10 +120,11 @@ static function &fields() { ) , 'time_stamp' => array( 'name' => 'time_stamp', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Timestamp') , 'description' => 'When this delivery event occurred.', 'required' => true, + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_mailing_event_delivered', 'entity' => 'Delivered', 'bao' => 'CRM_Mailing_Event_BAO_Delivered', diff --git a/CRM/Mailing/Event/DAO/Forward.php b/CRM/Mailing/Event/DAO/Forward.php index af2785e8b78d..94cfe08b7926 100644 --- a/CRM/Mailing/Event/DAO/Forward.php +++ b/CRM/Mailing/Event/DAO/Forward.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Forward.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5b9039dd2973b4a8b776e20c9afd519a) + * (GenCodeChecksum:c187b9e7dd1d6f2a9a9fd19180acd98f) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -70,7 +70,7 @@ class CRM_Mailing_Event_DAO_Forward extends CRM_Core_DAO { /** * When this forward event occurred. * - * @var datetime + * @var timestamp */ public $time_stamp; /** @@ -138,10 +138,11 @@ static function &fields() { ) , 'time_stamp' => array( 'name' => 'time_stamp', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Timestamp') , 'description' => 'When this forward event occurred.', 'required' => true, + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_mailing_event_forward', 'entity' => 'Forward', 'bao' => 'CRM_Mailing_Event_BAO_Forward', diff --git a/CRM/Mailing/Event/DAO/Opened.php b/CRM/Mailing/Event/DAO/Opened.php index 71bd1dbf5665..a31e2d1e1739 100644 --- a/CRM/Mailing/Event/DAO/Opened.php +++ b/CRM/Mailing/Event/DAO/Opened.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Opened.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:34b01566048993f3564bb13df83d7ebc) + * (GenCodeChecksum:8f5b5d87a40bd9589541faf9cd3bd4e4) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -64,7 +64,7 @@ class CRM_Mailing_Event_DAO_Opened extends CRM_Core_DAO { /** * When this open event occurred. * - * @var datetime + * @var timestamp */ public $time_stamp; /** @@ -120,10 +120,11 @@ static function &fields() { ) , 'time_stamp' => array( 'name' => 'time_stamp', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Timestamp') , 'description' => 'When this open event occurred.', 'required' => true, + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_mailing_event_opened', 'entity' => 'Opened', 'bao' => 'CRM_Mailing_Event_BAO_Opened', diff --git a/CRM/Mailing/Event/DAO/Reply.php b/CRM/Mailing/Event/DAO/Reply.php index d1965a5a3450..d5f3085cb45c 100644 --- a/CRM/Mailing/Event/DAO/Reply.php +++ b/CRM/Mailing/Event/DAO/Reply.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Reply.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b4b1d874923b9181d155aeffd8639a6a) + * (GenCodeChecksum:c820f3b64d2152014b47a738c32f1f84) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -64,7 +64,7 @@ class CRM_Mailing_Event_DAO_Reply extends CRM_Core_DAO { /** * When this reply event occurred. * - * @var datetime + * @var timestamp */ public $time_stamp; /** @@ -120,10 +120,11 @@ static function &fields() { ) , 'time_stamp' => array( 'name' => 'time_stamp', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Reply Timestamp') , 'description' => 'When this reply event occurred.', 'required' => true, + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_mailing_event_reply', 'entity' => 'Reply', 'bao' => 'CRM_Mailing_Event_BAO_Reply', diff --git a/CRM/Mailing/Event/DAO/Subscribe.php b/CRM/Mailing/Event/DAO/Subscribe.php index 286353fc1c4d..4bfe339a6314 100644 --- a/CRM/Mailing/Event/DAO/Subscribe.php +++ b/CRM/Mailing/Event/DAO/Subscribe.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Subscribe.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:cfca620c53960824402743820987892a) + * (GenCodeChecksum:7d7961401e033cc63575a58821bfa5c7) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -76,7 +76,7 @@ class CRM_Mailing_Event_DAO_Subscribe extends CRM_Core_DAO { /** * When this subscription event occurred. * - * @var datetime + * @var timestamp */ public $time_stamp; /** @@ -166,10 +166,11 @@ static function &fields() { ) , 'time_stamp' => array( 'name' => 'time_stamp', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Mailing Subscribe Timestamp') , 'description' => 'When this subscription event occurred.', 'required' => true, + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_mailing_event_subscribe', 'entity' => 'Subscribe', 'bao' => 'CRM_Mailing_Event_BAO_Subscribe', diff --git a/CRM/Mailing/Event/DAO/TrackableURLOpen.php b/CRM/Mailing/Event/DAO/TrackableURLOpen.php index 4c6d9e7793b3..0074f3c3dcbb 100644 --- a/CRM/Mailing/Event/DAO/TrackableURLOpen.php +++ b/CRM/Mailing/Event/DAO/TrackableURLOpen.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/TrackableURLOpen.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4deaa2fd1534e9f0493f6059eaa74a23) + * (GenCodeChecksum:fc2a3b22d6de10cd6b46ee649df9e471) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -70,7 +70,7 @@ class CRM_Mailing_Event_DAO_TrackableURLOpen extends CRM_Core_DAO { /** * When this trackable URL open occurred. * - * @var datetime + * @var timestamp */ public $time_stamp; /** @@ -139,10 +139,11 @@ static function &fields() { ) , 'time_stamp' => array( 'name' => 'time_stamp', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Timestamp') , 'description' => 'When this trackable URL open occurred.', 'required' => true, + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_mailing_event_trackable_url_open', 'entity' => 'TrackableURLOpen', 'bao' => 'CRM_Mailing_Event_BAO_TrackableURLOpen', diff --git a/CRM/Mailing/Event/DAO/Unsubscribe.php b/CRM/Mailing/Event/DAO/Unsubscribe.php index 9bdbdaac501e..d18f977fab80 100644 --- a/CRM/Mailing/Event/DAO/Unsubscribe.php +++ b/CRM/Mailing/Event/DAO/Unsubscribe.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/Unsubscribe.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:459e65f073984db62e5e6ca22f121044) + * (GenCodeChecksum:a44ecc4ce8b1a8ecdca57fff8d053392) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -70,7 +70,7 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO { /** * When this delivery event occurred. * - * @var datetime + * @var timestamp */ public $time_stamp; /** @@ -137,10 +137,11 @@ static function &fields() { ) , 'time_stamp' => array( 'name' => 'time_stamp', - 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, + 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Unsubscribe Timestamp') , 'description' => 'When this delivery event occurred.', 'required' => true, + 'default' => 'CURRENT_TIMESTAMP', 'table_name' => 'civicrm_mailing_event_unsubscribe', 'entity' => 'Unsubscribe', 'bao' => 'CRM_Mailing_Event_BAO_Unsubscribe',