Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-08-19-00-06-22
[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 <type>int unsigned</type>
12 <required>true</required>
13 <add>2.1</add>
14 </field>
15 <primaryKey>
16 <name>id</name>
17 <autoincrement>true</autoincrement>
18 </primaryKey>
19 <field>
20 <name>group_name</name>
21 <type>varchar</type>
22 <length>32</length>
23 <required>true</required>
24 <comment>group name for cache element, useful in cleaning cache elements</comment>
25 <add>2.1</add>
26 </field>
27 <field>
28 <name>path</name>
29 <type>varchar</type>
30 <length>255</length>
31 <comment>Unique path name for cache element</comment>
32 <add>2.1</add>
33 </field>
34 <index>
35 <name>UI_group_path</name>
36 <fieldName>group_name</fieldName>
37 <fieldName>path</fieldName>
38 <unique>true</unique>
39 <add>2.1</add>
40 <drop>4.2</drop>
41 </index>
42 <index>
43 <name>UI_group_path_date</name>
44 <fieldName>group_name</fieldName>
45 <fieldName>path</fieldName>
46 <fieldName>created_date</fieldName>
47 <unique>true</unique>
48 <add>4.2</add>
49 </index>
50 <field>
51 <name>data</name>
52 <type>longtext</type>
53 <comment>data associated with this path</comment>
54 <add>2.1</add>
55 </field>
56 <field>
57 <name>component_id</name>
58 <type>int unsigned</type>
59 <comment>Component that this menu item belongs to</comment>
60 <add>2.1</add>
61 <pseudoconstant>
62 <table>civicrm_component</table>
63 <keyColumn>id</keyColumn>
64 <labelColumn>name</labelColumn>
65 </pseudoconstant>
66 <html>
67 <type>Select</type>
68 </html>
69 </field>
70 <foreignKey>
71 <name>component_id</name>
72 <table>civicrm_component</table>
73 <key>id</key>
74 <add>2.1</add>
75 </foreignKey>
76 <field>
77 <name>created_date</name>
78 <type>datetime</type>
79 <comment>When was the cache item created</comment>
80 <add>2.1</add>
81 </field>
82 <field>
83 <name>expired_date</name>
84 <type>datetime</type>
85 <comment>When should the cache item expire</comment>
86 <add>2.1</add>
87 </field>
88 </table>