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> | |
2a5c9b4d | 49 | <serialize>PHP</serialize> |
6a488035 TO |
50 | <add>4.1</add> |
51 | </field> | |
52 | <field> | |
8f069c03 | 53 | <name>domain_id</name> |
b05e6d0d | 54 | <title>Setting Domain</title> |
8f069c03 EM |
55 | <type>int unsigned</type> |
56 | <required>true</required> | |
57 | <pseudoconstant> | |
58 | <table>civicrm_domain</table> | |
59 | <keyColumn>id</keyColumn> | |
60 | <labelColumn>name</labelColumn> | |
61 | </pseudoconstant> | |
62 | <comment>Which Domain is this menu item for</comment> | |
63 | <add>4.1</add> | |
6a488035 TO |
64 | </field> |
65 | <foreignKey> | |
8f069c03 EM |
66 | <name>domain_id</name> |
67 | <table>civicrm_domain</table> | |
68 | <key>id</key> | |
69 | <onDelete>CASCADE</onDelete> | |
70 | <add>4.1</add> | |
6a488035 TO |
71 | </foreignKey> |
72 | <field> | |
8f069c03 | 73 | <name>contact_id</name> |
b05e6d0d | 74 | <title>Setting Contact</title> |
8f069c03 EM |
75 | <type>int unsigned</type> |
76 | <comment>FK to Contact ID if the setting is localized to a contact</comment> | |
77 | <add>4.1</add> | |
6a488035 TO |
78 | </field> |
79 | <foreignKey> | |
8f069c03 EM |
80 | <name>contact_id</name> |
81 | <table>civicrm_contact</table> | |
82 | <key>id</key> | |
83 | <onDelete>CASCADE</onDelete> | |
84 | <add>4.1</add> | |
6a488035 TO |
85 | </foreignKey> |
86 | <field> | |
8f069c03 | 87 | <name>is_domain</name> |
b05e6d0d | 88 | <title>Is Domain Setting?</title> |
8f069c03 EM |
89 | <type>boolean</type> |
90 | <comment>Is this setting a contact specific or site wide setting?</comment> | |
91 | <add>4.1</add> | |
6a488035 TO |
92 | </field> |
93 | <field> | |
8f785c9e | 94 | <name>component_id</name> |
b05e6d0d | 95 | <title>Setting Component</title> |
8f785c9e AS |
96 | <type>int unsigned</type> |
97 | <comment>Component that this menu item belongs to</comment> | |
98 | <add>4.1</add> | |
99 | <pseudoconstant> | |
100 | <table>civicrm_component</table> | |
101 | <keyColumn>id</keyColumn> | |
102 | <labelColumn>name</labelColumn> | |
103 | </pseudoconstant> | |
614d72ec | 104 | <html> |
e0991796 | 105 | <type>Select</type> |
614d72ec | 106 | </html> |
6a488035 TO |
107 | </field> |
108 | <foreignKey> | |
8f069c03 EM |
109 | <name>component_id</name> |
110 | <table>civicrm_component</table> | |
111 | <key>id</key> | |
112 | <add>4.1</add> | |
6a488035 TO |
113 | </foreignKey> |
114 | <field> | |
115 | <name>created_date</name> | |
b05e6d0d | 116 | <title>Setting Created Date</title> |
6a488035 TO |
117 | <type>datetime</type> |
118 | <comment>When was the setting created</comment> | |
119 | <add>4.1</add> | |
120 | </field> | |
121 | <field> | |
122 | <name>created_id</name> | |
b05e6d0d | 123 | <title>Setting Created By</title> |
6a488035 TO |
124 | <type>int unsigned</type> |
125 | <comment>FK to civicrm_contact, who created this setting</comment> | |
126 | <add>4.1</add> | |
127 | </field> | |
128 | <foreignKey> | |
129 | <name>created_id</name> | |
130 | <table>civicrm_contact</table> | |
131 | <key>id</key> | |
132 | <add>4.1</add> | |
133 | <onDelete>SET NULL</onDelete> | |
134 | </foreignKey> | |
f806379b TO |
135 | <index> |
136 | <name>index_domain_contact_name</name> | |
137 | <fieldName>domain_id</fieldName> | |
138 | <fieldName>contact_id</fieldName> | |
139 | <fieldName>name</fieldName> | |
140 | <unique>true</unique> | |
141 | <add>4.7</add> | |
142 | </index> | |
143 | ||
6a488035 | 144 | </table> |