Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added field title for Cache table #15204

Merged
merged 1 commit into from
Sep 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CRM/Core/DAO/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Core/Cache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:97df4edaa4829ea30a151dbb95ff754d)
* (GenCodeChecksum:4d3ccecb7d91aa67b8c78c3c39933ae8)
*/

/**
Expand All @@ -29,6 +29,8 @@ class CRM_Core_DAO_Cache extends CRM_Core_DAO {
public static $_log = FALSE;

/**
* Unique table ID
*
* @var int
*/
public $id;
Expand Down Expand Up @@ -109,6 +111,8 @@ public static function &fields() {
'id' => [
'name' => 'id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Cache ID'),
'description' => ts('Unique table ID'),
'required' => TRUE,
'where' => 'civicrm_cache.id',
'table_name' => 'civicrm_cache',
Expand Down Expand Up @@ -157,6 +161,7 @@ public static function &fields() {
'component_id' => [
'name' => 'component_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Component ID'),
'description' => ts('Component that this menu item belongs to'),
'where' => 'civicrm_cache.component_id',
'table_name' => 'civicrm_cache',
Expand Down
8 changes: 8 additions & 0 deletions xml/schema/Core/Cache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
<add>2.1</add>
<field>
<name>id</name>
<title>Cache ID</title>
<type>int unsigned</type>
<required>true</required>
<comment>Unique table ID</comment>
<add>2.1</add>
</field>
<primaryKey>
Expand All @@ -18,6 +20,7 @@
</primaryKey>
<field>
<name>group_name</name>
<title>Group Name</title>
<type>varchar</type>
<length>32</length>
<required>true</required>
Expand All @@ -26,6 +29,7 @@
</field>
<field>
<name>path</name>
<title>Path</title>
<type>varchar</type>
<length>255</length>
<comment>Unique path name for cache element</comment>
Expand All @@ -49,12 +53,14 @@
</index>
<field>
<name>data</name>
<title>Data</title>
<type>longtext</type>
<comment>data associated with this path</comment>
<add>2.1</add>
</field>
<field>
<name>component_id</name>
<title>Component ID</title>
<type>int unsigned</type>
<comment>Component that this menu item belongs to</comment>
<add>2.1</add>
Expand All @@ -75,13 +81,15 @@
</foreignKey>
<field>
<name>created_date</name>
<title>Created Date</title>
<type>timestamp</type>
<default>CURRENT_TIMESTAMP</default>
<comment>When was the cache item created</comment>
<add>2.1</add>
</field>
<field>
<name>expired_date</name>
<title>Expired Date</title>
<type>timestamp</type>
<default>NULL</default>
<required>false</required>
Expand Down