Commit | Line | Data |
---|---|---|
6a488035 TO |
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> | |
8f069c03 | 10 | <name>id</name> |
b05e6d0d | 11 | <title>Setting ID</title> |
8f069c03 EM |
12 | <type>int unsigned</type> |
13 | <required>true</required> | |
0481e12c A |
14 | <html> |
15 | <type>Number</type> | |
16 | </html> | |
8f069c03 | 17 | <add>4.1</add> |
6a488035 TO |
18 | </field> |
19 | <primaryKey> | |
8f069c03 EM |
20 | <name>id</name> |
21 | <autoincrement>true</autoincrement> | |
6a488035 TO |
22 | </primaryKey> |
23 | <field> | |
8f069c03 | 24 | <name>group_name</name> |
b05e6d0d | 25 | <title>Setting Group</title> |
8f069c03 EM |
26 | <type>varchar</type> |
27 | <length>64</length> | |
28 | <required>true</required> | |
29 | <comment>group name for setting element, useful in caching setting elements</comment> | |
30 | <add>4.1</add> | |
f806379b | 31 | <drop>4.7</drop> |
6a488035 TO |
32 | </field> |
33 | <field> | |
8f069c03 | 34 | <name>name</name> |
b05e6d0d | 35 | <title>Setting Name</title> |
8f069c03 EM |
36 | <type>varchar</type> |
37 | <length>255</length> | |
38 | <comment>Unique name for setting</comment> | |
39 | <add>4.1</add> | |
6a488035 TO |
40 | </field> |
41 | <index> | |
42 | <name>index_group_name</name> | |
43 | <fieldName>group_name</fieldName> | |
44 | <fieldName>name</fieldName> | |
45 | <add>4.1</add> | |
f806379b | 46 | <drop>4.7</drop> |
6a488035 TO |
47 | </index> |
48 | <field> | |
49 | <name>value</name> | |
50 | <type>text</type> | |
51 | <comment>data associated with this group / name combo</comment> | |
2a5c9b4d | 52 | <serialize>PHP</serialize> |
1662d426 A |
53 | <html> |
54 | <label>Value</label> | |
55 | </html> | |
6a488035 TO |
56 | <add>4.1</add> |
57 | </field> | |
58 | <field> | |
8f069c03 | 59 | <name>domain_id</name> |
047c5009 | 60 | <title>Domain ID</title> |
8f069c03 EM |
61 | <type>int unsigned</type> |
62 | <required>true</required> | |
63 | <pseudoconstant> | |
64 | <table>civicrm_domain</table> | |
65 | <keyColumn>id</keyColumn> | |
66 | <labelColumn>name</labelColumn> | |
67 | </pseudoconstant> | |
68 | <comment>Which Domain is this menu item for</comment> | |
57e94608 | 69 | <html> |
047c5009 | 70 | <label>Domain</label> |
57e94608 | 71 | </html> |
8f069c03 | 72 | <add>4.1</add> |
6a488035 TO |
73 | </field> |
74 | <foreignKey> | |
8f069c03 EM |
75 | <name>domain_id</name> |
76 | <table>civicrm_domain</table> | |
77 | <key>id</key> | |
78 | <onDelete>CASCADE</onDelete> | |
79 | <add>4.1</add> | |
6a488035 TO |
80 | </foreignKey> |
81 | <field> | |
8f069c03 | 82 | <name>contact_id</name> |
047c5009 | 83 | <title>Contact ID</title> |
8f069c03 EM |
84 | <type>int unsigned</type> |
85 | <comment>FK to Contact ID if the setting is localized to a contact</comment> | |
57e94608 | 86 | <html> |
047c5009 | 87 | <label>Contact</label> |
57e94608 | 88 | </html> |
8f069c03 | 89 | <add>4.1</add> |
6a488035 TO |
90 | </field> |
91 | <foreignKey> | |
8f069c03 EM |
92 | <name>contact_id</name> |
93 | <table>civicrm_contact</table> | |
94 | <key>id</key> | |
95 | <onDelete>CASCADE</onDelete> | |
96 | <add>4.1</add> | |
6a488035 TO |
97 | </foreignKey> |
98 | <field> | |
8f069c03 | 99 | <name>is_domain</name> |
b05e6d0d | 100 | <title>Is Domain Setting?</title> |
8f069c03 | 101 | <type>boolean</type> |
c1e814c7 MD |
102 | <default>0</default> |
103 | <required>true</required> | |
8f069c03 EM |
104 | <comment>Is this setting a contact specific or site wide setting?</comment> |
105 | <add>4.1</add> | |
6a488035 TO |
106 | </field> |
107 | <field> | |
8f785c9e | 108 | <name>component_id</name> |
047c5009 | 109 | <title>Component ID</title> |
8f785c9e AS |
110 | <type>int unsigned</type> |
111 | <comment>Component that this menu item belongs to</comment> | |
112 | <add>4.1</add> | |
113 | <pseudoconstant> | |
114 | <table>civicrm_component</table> | |
115 | <keyColumn>id</keyColumn> | |
116 | <labelColumn>name</labelColumn> | |
117 | </pseudoconstant> | |
614d72ec | 118 | <html> |
e0991796 | 119 | <type>Select</type> |
047c5009 | 120 | <label>Component</label> |
614d72ec | 121 | </html> |
6a488035 TO |
122 | </field> |
123 | <foreignKey> | |
8f069c03 EM |
124 | <name>component_id</name> |
125 | <table>civicrm_component</table> | |
126 | <key>id</key> | |
127 | <add>4.1</add> | |
6a488035 TO |
128 | </foreignKey> |
129 | <field> | |
130 | <name>created_date</name> | |
b05e6d0d | 131 | <title>Setting Created Date</title> |
6a488035 TO |
132 | <type>datetime</type> |
133 | <comment>When was the setting created</comment> | |
134 | <add>4.1</add> | |
135 | </field> | |
136 | <field> | |
137 | <name>created_id</name> | |
047c5009 | 138 | <title>Created By Contact ID</title> |
6a488035 TO |
139 | <type>int unsigned</type> |
140 | <comment>FK to civicrm_contact, who created this setting</comment> | |
57e94608 | 141 | <html> |
047c5009 | 142 | <label>Created By</label> |
57e94608 | 143 | </html> |
6a488035 TO |
144 | <add>4.1</add> |
145 | </field> | |
146 | <foreignKey> | |
147 | <name>created_id</name> | |
148 | <table>civicrm_contact</table> | |
149 | <key>id</key> | |
150 | <add>4.1</add> | |
151 | <onDelete>SET NULL</onDelete> | |
152 | </foreignKey> | |
f806379b TO |
153 | <index> |
154 | <name>index_domain_contact_name</name> | |
155 | <fieldName>domain_id</fieldName> | |
156 | <fieldName>contact_id</fieldName> | |
157 | <fieldName>name</fieldName> | |
158 | <unique>true</unique> | |
159 | <add>4.7</add> | |
160 | </index> | |
161 | ||
6a488035 | 162 | </table> |