CRM-15168 stdise whitespace across schema xml to make editing easier
[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
EM
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <add>2.1</add>
6a488035
TO
14 </field>
15 <primaryKey>
8f069c03
EM
16 <name>id</name>
17 <autoincrement>true</autoincrement>
6a488035
TO
18 </primaryKey>
19 <field>
8f069c03
EM
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>
6a488035
TO
26 </field>
27 <field>
8f069c03
EM
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>
6a488035
TO
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>
8f785c9e
AS
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>
614d72ec 66 <html>
e0991796 67 <type>Select</type>
614d72ec 68 </html>
6a488035
TO
69 </field>
70 <foreignKey>
8f069c03
EM
71 <name>component_id</name>
72 <table>civicrm_component</table>
73 <key>id</key>
74 <add>2.1</add>
6a488035
TO
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>