Merge pull request #18135 from colemanw/daoVersions
[civicrm-core.git] / xml / schema / Core / Cache.xml
CommitLineData
6a488035
TO
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>
8f069c03 10 <name>id</name>
6692f42b 11 <title>Cache ID</title>
8f069c03
EM
12 <type>int unsigned</type>
13 <required>true</required>
6692f42b 14 <comment>Unique table ID</comment>
8f069c03 15 <add>2.1</add>
6a488035
TO
16 </field>
17 <primaryKey>
8f069c03
EM
18 <name>id</name>
19 <autoincrement>true</autoincrement>
6a488035
TO
20 </primaryKey>
21 <field>
8f069c03 22 <name>group_name</name>
6692f42b 23 <title>Group Name</title>
8f069c03
EM
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>
6a488035
TO
29 </field>
30 <field>
8f069c03 31 <name>path</name>
6692f42b 32 <title>Path</title>
8f069c03
EM
33 <type>varchar</type>
34 <length>255</length>
35 <comment>Unique path name for cache element</comment>
36 <add>2.1</add>
6a488035
TO
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>
6692f42b 56 <title>Data</title>
6a488035
TO
57 <type>longtext</type>
58 <comment>data associated with this path</comment>
59 <add>2.1</add>
60 </field>
61 <field>
8f785c9e 62 <name>component_id</name>
6692f42b 63 <title>Component ID</title>
8f785c9e
AS
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>
614d72ec 72 <html>
e0991796 73 <type>Select</type>
614d72ec 74 </html>
6a488035
TO
75 </field>
76 <foreignKey>
8f069c03
EM
77 <name>component_id</name>
78 <table>civicrm_component</table>
79 <key>id</key>
80 <add>2.1</add>
6a488035
TO
81 </foreignKey>
82 <field>
83 <name>created_date</name>
6692f42b 84 <title>Created Date</title>
4387c66f 85 <type>timestamp</type>
86 <default>CURRENT_TIMESTAMP</default>
6a488035
TO
87 <comment>When was the cache item created</comment>
88 <add>2.1</add>
89 </field>
90 <field>
91 <name>expired_date</name>
6692f42b 92 <title>Expired Date</title>
4387c66f 93 <type>timestamp</type>
94 <default>NULL</default>
95 <required>false</required>
6a488035
TO
96 <comment>When should the cache item expire</comment>
97 <add>2.1</add>
98 </field>
99</table>