Skip to content

Commit

Permalink
Move field around in table definition as per Eileen's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Sep 10, 2017
1 parent 83934fd commit 23b1edd
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 60 deletions.
46 changes: 23 additions & 23 deletions CRM/Mailing/DAO/Mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*
* Generated from xml/schema/CRM/Mailing/Mailing.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:4b11c9e5728b8468467a00efeff9c865)
* (GenCodeChecksum:3e332257744be5cf9d7a2545f69f67eb)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
Expand Down Expand Up @@ -210,6 +210,12 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
* @var timestamp
*/
public $created_date;
/**
* When the mailing (or closely related entity) was created or modified or deleted.
*
* @var timestamp
*/
public $modified_date;
/**
* FK to Contact ID who scheduled this mailing
*
Expand Down Expand Up @@ -299,12 +305,6 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
* @var string
*/
public $language;
/**
* When was the mailing (or closely related entity) was created or modified or deleted.
*
* @var timestamp
*/
public $modified_date;
/**
* Class constructor.
*/
Expand Down Expand Up @@ -689,6 +689,22 @@ static function &fields() {
'formatType' => 'activityDateTime',
) ,
) ,
'mailing_modified_date' => array(
'name' => 'modified_date',
'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Modified Date') ,
'description' => 'When the mailing (or closely related entity) was created or modified or deleted.',
'required' => false,
'export' => true,
'where' => 'civicrm_mailing.modified_date',
'headerPattern' => '',
'dataPattern' => '',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'localizable' => 0,
) ,
'scheduled_id' => array(
'name' => 'scheduled_id',
'type' => CRM_Utils_Type::T_INT,
Expand Down Expand Up @@ -914,22 +930,6 @@ static function &fields() {
'optionEditPath' => 'civicrm/admin/options/languages',
)
) ,
'mailing_modified_date' => array(
'name' => 'modified_date',
'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Modified Date') ,
'description' => 'When the mailing (or closely related entity) was created or modified or deleted.',
'required' => false,
'export' => true,
'where' => 'civicrm_mailing.modified_date',
'headerPattern' => '',
'dataPattern' => '',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'localizable' => 0,
) ,
);
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
}
Expand Down
54 changes: 27 additions & 27 deletions sql/civicrm_generated.mysql

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions xml/schema/Mailing/Mailing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,16 @@
<formatType>activityDateTime</formatType>
</html>
</field>
<field>
<name>modified_date</name>
<uniqueName>mailing_modified_date</uniqueName>
<type>timestamp</type>
<comment>When the mailing (or closely related entity) was created or modified or deleted.</comment>
<required>false</required>
<export>true</export>
<default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP</default>
<add>4.7</add>
</field>
<field>
<name>scheduled_id</name>
<title>Scheduled By</title>
Expand Down Expand Up @@ -487,14 +497,4 @@
<type>Select</type>
</html>
</field>
<field>
<name>modified_date</name>
<uniqueName>mailing_modified_date</uniqueName>
<type>timestamp</type>
<comment>When the mailing (or closely related entity) was created or modified or deleted.</comment>
<required>false</required>
<export>true</export>
<default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP</default>
<add>4.7</add>
</field>
</table>

0 comments on commit 23b1edd

Please sign in to comment.