Merge pull request #10805 from JKingsnorth/CRM-21009
[civicrm-core.git] / CRM / Mailing / DAO / MailingAB.php
index f3163deb70a8573ca5c96404dd048abe14132686..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',
@@ -374,4 +376,11 @@ class CRM_Mailing_DAO_MailingAB extends CRM_Core_DAO {
     $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_abtest', $prefix, array());
     return $r;
   }
+  /**
+   * Returns the list of indices
+   */
+  public static function indices($localize = TRUE) {
+    $indices = array();
+    return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
+  }
 }