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 EM |
101 | <type>boolean</type> |
102 | <comment>Is this setting a contact specific or site wide setting?</comment> | |
103 | <add>4.1</add> | |
6a488035 TO |
104 | </field> |
105 | <field> | |
8f785c9e | 106 | <name>component_id</name> |
047c5009 | 107 | <title>Component ID</title> |
8f785c9e AS |
108 | <type>int unsigned</type> |
109 | <comment>Component that this menu item belongs to</comment> | |
110 | <add>4.1</add> | |
111 | <pseudoconstant> | |
112 | <table>civicrm_component</table> | |
113 | <keyColumn>id</keyColumn> | |
114 | <labelColumn>name</labelColumn> | |
115 | </pseudoconstant> | |
614d72ec | 116 | <html> |
e0991796 | 117 | <type>Select</type> |
047c5009 | 118 | <label>Component</label> |
614d72ec | 119 | </html> |
6a488035 TO |
120 | </field> |
121 | <foreignKey> | |
8f069c03 EM |
122 | <name>component_id</name> |
123 | <table>civicrm_component</table> | |
124 | <key>id</key> | |
125 | <add>4.1</add> | |
6a488035 TO |
126 | </foreignKey> |
127 | <field> | |
128 | <name>created_date</name> | |
b05e6d0d | 129 | <title>Setting Created Date</title> |
6a488035 TO |
130 | <type>datetime</type> |
131 | <comment>When was the setting created</comment> | |
132 | <add>4.1</add> | |
133 | </field> | |
134 | <field> | |
135 | <name>created_id</name> | |
047c5009 | 136 | <title>Created By Contact ID</title> |
6a488035 TO |
137 | <type>int unsigned</type> |
138 | <comment>FK to civicrm_contact, who created this setting</comment> | |
57e94608 | 139 | <html> |
047c5009 | 140 | <label>Created By</label> |
57e94608 | 141 | </html> |
6a488035 TO |
142 | <add>4.1</add> |
143 | </field> | |
144 | <foreignKey> | |
145 | <name>created_id</name> | |
146 | <table>civicrm_contact</table> | |
147 | <key>id</key> | |
148 | <add>4.1</add> | |
149 | <onDelete>SET NULL</onDelete> | |
150 | </foreignKey> | |
f806379b TO |
151 | <index> |
152 | <name>index_domain_contact_name</name> | |
153 | <fieldName>domain_id</fieldName> | |
154 | <fieldName>contact_id</fieldName> | |
155 | <fieldName>name</fieldName> | |
156 | <unique>true</unique> | |
157 | <add>4.7</add> | |
158 | </index> | |
159 | ||
6a488035 | 160 | </table> |