Merge pull request #14667 from hoegrammer/master
[civicrm-core.git] / xml / schema / Core / Cache.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>Cache</class>
6 <name>civicrm_cache</name>
7 <comment>Table to cache items for civicrm components.</comment>
8 <add>2.1</add>
9 <field>
10 <name>id</name>
11 <title>Cache ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Unique table ID</comment>
15 <add>2.1</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>group_name</name>
23 <title>Group Name</title>
24 <type>varchar</type>
25 <length>32</length>
26 <required>true</required>
27 <comment>group name for cache element, useful in cleaning cache elements</comment>
28 <add>2.1</add>
29 </field>
30 <field>
31 <name>path</name>
32 <title>Path</title>
33 <type>varchar</type>
34 <length>255</length>
35 <comment>Unique path name for cache element</comment>
36 <add>2.1</add>
37 </field>
38 <index>
39 <name>UI_group_path</name>
40 <fieldName>group_name</fieldName>
41 <fieldName>path</fieldName>
42 <unique>true</unique>
43 <add>2.1</add>
44 <drop>4.2</drop>
45 </index>
46 <index>
47 <name>UI_group_path_date</name>
48 <fieldName>group_name</fieldName>
49 <fieldName>path</fieldName>
50 <fieldName>created_date</fieldName>
51 <unique>true</unique>
52 <add>4.2</add>
53 </index>
54 <field>
55 <name>data</name>
56 <title>Data</title>
57 <type>longtext</type>
58 <comment>data associated with this path</comment>
59 <add>2.1</add>
60 </field>
61 <field>
62 <name>component_id</name>
63 <title>Component ID</title>
64 <type>int unsigned</type>
65 <comment>Component that this menu item belongs to</comment>
66 <add>2.1</add>
67 <pseudoconstant>
68 <table>civicrm_component</table>
69 <keyColumn>id</keyColumn>
70 <labelColumn>name</labelColumn>
71 </pseudoconstant>
72 <html>
73 <type>Select</type>
74 </html>
75 </field>
76 <foreignKey>
77 <name>component_id</name>
78 <table>civicrm_component</table>
79 <key>id</key>
80 <add>2.1</add>
81 </foreignKey>
82 <field>
83 <name>created_date</name>
84 <title>Created Date</title>
85 <type>timestamp</type>
86 <default>CURRENT_TIMESTAMP</default>
87 <comment>When was the cache item created</comment>
88 <add>2.1</add>
89 </field>
90 <field>
91 <name>expired_date</name>
92 <title>Expired Date</title>
93 <type>timestamp</type>
94 <default>NULL</default>
95 <required>false</required>
96 <comment>When should the cache item expire</comment>
97 <add>2.1</add>
98 </field>
99 </table>