commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / xml / schema / Core / Setting.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>Setting</class>
6 <name>civicrm_setting</name>
7 <comment>Table to store civicrm settings for civicrm core and components.</comment>
8 <add>4.1</add>
9 <field>
10 <name>id</name>
11 <title>Setting ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <add>4.1</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>group_name</name>
22 <title>Setting Group</title>
23 <type>varchar</type>
24 <length>64</length>
25 <required>true</required>
26 <comment>group name for setting element, useful in caching setting elements</comment>
27 <add>4.1</add>
28 </field>
29 <field>
30 <name>name</name>
31 <title>Setting Name</title>
32 <type>varchar</type>
33 <length>255</length>
34 <comment>Unique name for setting</comment>
35 <add>4.1</add>
36 </field>
37 <index>
38 <name>index_group_name</name>
39 <fieldName>group_name</fieldName>
40 <fieldName>name</fieldName>
41 <add>4.1</add>
42 </index>
43 <field>
44 <name>value</name>
45 <type>text</type>
46 <comment>data associated with this group / name combo</comment>
47 <add>4.1</add>
48 </field>
49 <field>
50 <name>domain_id</name>
51 <title>Setting Domain</title>
52 <type>int unsigned</type>
53 <required>true</required>
54 <pseudoconstant>
55 <table>civicrm_domain</table>
56 <keyColumn>id</keyColumn>
57 <labelColumn>name</labelColumn>
58 </pseudoconstant>
59 <comment>Which Domain is this menu item for</comment>
60 <add>4.1</add>
61 </field>
62 <foreignKey>
63 <name>domain_id</name>
64 <table>civicrm_domain</table>
65 <key>id</key>
66 <onDelete>CASCADE</onDelete>
67 <add>4.1</add>
68 </foreignKey>
69 <field>
70 <name>contact_id</name>
71 <title>Setting Contact</title>
72 <type>int unsigned</type>
73 <comment>FK to Contact ID if the setting is localized to a contact</comment>
74 <add>4.1</add>
75 </field>
76 <foreignKey>
77 <name>contact_id</name>
78 <table>civicrm_contact</table>
79 <key>id</key>
80 <onDelete>CASCADE</onDelete>
81 <add>4.1</add>
82 </foreignKey>
83 <field>
84 <name>is_domain</name>
85 <title>Is Domain Setting?</title>
86 <type>boolean</type>
87 <comment>Is this setting a contact specific or site wide setting?</comment>
88 <add>4.1</add>
89 </field>
90 <field>
91 <name>component_id</name>
92 <title>Setting Component</title>
93 <type>int unsigned</type>
94 <comment>Component that this menu item belongs to</comment>
95 <add>4.1</add>
96 <pseudoconstant>
97 <table>civicrm_component</table>
98 <keyColumn>id</keyColumn>
99 <labelColumn>name</labelColumn>
100 </pseudoconstant>
101 <html>
102 <type>Select</type>
103 </html>
104 </field>
105 <foreignKey>
106 <name>component_id</name>
107 <table>civicrm_component</table>
108 <key>id</key>
109 <add>4.1</add>
110 </foreignKey>
111 <field>
112 <name>created_date</name>
113 <title>Setting Created Date</title>
114 <type>datetime</type>
115 <comment>When was the setting created</comment>
116 <add>4.1</add>
117 </field>
118 <field>
119 <name>created_id</name>
120 <title>Setting Created By</title>
121 <type>int unsigned</type>
122 <comment>FK to civicrm_contact, who created this setting</comment>
123 <add>4.1</add>
124 </field>
125 <foreignKey>
126 <name>created_id</name>
127 <table>civicrm_contact</table>
128 <key>id</key>
129 <add>4.1</add>
130 <onDelete>SET NULL</onDelete>
131 </foreignKey>
132 </table>