Merge pull request #10152 from agh1/crm-20419
[civicrm-core.git] / CRM / Mailing / DAO / MailingJob.php
index c0714bc8829e6de8f36e634a1562209418c6b1ed..ecdbe4705e77d55ec886ee8272e5efffb1a35c3b 100644 (file)
@@ -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 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
         ) ,
         '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 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
         ) ,
         '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 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
         ) ,
         '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',