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