*
* Generated from xml/schema/CRM/Contact/SavedSearch.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:25d5385ad222a7a7290fd18b3a27af8a)
+ * (GenCodeChecksum:1ca4440b5a09843b5d87d595a6d826ef)
*/
/**
public $created_date;
/**
- * When the search was lase modified.
+ * When the search was last modified.
*
* @var timestamp
*/
public $modified_date;
+ /**
+ * @var text
+ */
+ public $description;
+
/**
* Class constructor.
*/
'name' => 'modified_date',
'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Modified Date'),
- 'description' => ts('When the search was lase modified.'),
+ 'description' => ts('When the search was last modified.'),
'required' => TRUE,
'where' => 'civicrm_saved_search.modified_date',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'localizable' => 0,
'add' => '5.36',
],
+ 'description' => [
+ 'name' => 'description',
+ 'type' => CRM_Utils_Type::T_TEXT,
+ 'title' => ts('Saved Search Description'),
+ 'rows' => 2,
+ 'cols' => 60,
+ 'where' => 'civicrm_saved_search.description',
+ 'table_name' => 'civicrm_saved_search',
+ 'entity' => 'SavedSearch',
+ 'bao' => 'CRM_Contact_BAO_SavedSearch',
+ 'localizable' => 0,
+ 'html' => [
+ 'type' => 'TextArea',
+ ],
+ 'add' => '5.36',
+ ],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
}
'civicrm_saved_search', 'created_date', "timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'When the search was created.'");
$this->addTask('core-issue#2422 - Add modified_date to civicrm_saved_search', 'addColumn',
'civicrm_saved_search', 'modified_date', "timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'When the search was last modified.'");
+ $this->addTask('core-issue#2422 - Add description to civicrm_saved_search', 'addColumn',
+ 'civicrm_saved_search', 'description', "text DEFAULT NULL");
$this->addTask('core-issue#2422 - Add constraints to civicrm_saved_search', 'taskAddConstraints');
<field>
<name>modified_date</name>
<type>timestamp</type>
- <comment>When the search was lase modified.</comment>
+ <comment>When the search was last modified.</comment>
<required>true</required>
<default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP</default>
<add>5.36</add>
</field>
+ <field>
+ <name>description</name>
+ <type>text</type>
+ <title>Saved Search Description</title>
+ <html>
+ <type>TextArea</type>
+ <rows>2</rows>
+ <cols>60</cols>
+ </html>
+ <add>5.36</add>
+ </field>
</table>