Merge pull request #10805 from JKingsnorth/CRM-21009
[civicrm-core.git] / CRM / Mailing / DAO / MailingAB.php
index 71a82aa6557aaae91ef1c437137878862f01bbc3..b3997d94fb2010cc04ff76bec5136aede40aaec2 100644 (file)
@@ -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 @@ class CRM_Mailing_DAO_MailingAB extends CRM_Core_DAO {
         ) ,
         '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',