Merge pull request #10217 from fuzionnz/CRM-20466-php7.1_only_vars_by_ref
[civicrm-core.git] / CRM / Mailing / Event / DAO / Unsubscribe.php
index 9bdbdaac501ed67913ea9327990cb7f24fbff879..d18f977fab8018ce8d8ec961003748110a01f42b 100644 (file)
@@ -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 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO {
         ) ,
         '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',