Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Core</base> | |
5 | <class>MappingField</class> | |
6 | <name>civicrm_mapping_field</name> | |
7 | <comment>Individual field mappings for Mapping</comment> | |
8 | <add>1.2</add> | |
9 | <field> | |
8f069c03 EM |
10 | <name>id</name> |
11 | <type>int unsigned</type> | |
10d067c6 | 12 | <title>Mapping Field ID</title> |
8f069c03 EM |
13 | <required>true</required> |
14 | <comment>Mapping Field ID</comment> | |
15 | <add>1.2</add> | |
6a488035 TO |
16 | </field> |
17 | <primaryKey> | |
8f069c03 EM |
18 | <name>id</name> |
19 | <autoincrement>true</autoincrement> | |
20 | <add>1.2</add> | |
6a488035 TO |
21 | </primaryKey> |
22 | <field> | |
8f069c03 EM |
23 | <name>mapping_id</name> |
24 | <type>int unsigned</type> | |
10d067c6 | 25 | <title>Mapping ID</title> |
8f069c03 EM |
26 | <required>true</required> |
27 | <comment>Mapping to which this field belongs</comment> | |
28 | <add>1.2</add> | |
6a488035 TO |
29 | </field> |
30 | <foreignKey> | |
8f069c03 EM |
31 | <name>mapping_id</name> |
32 | <table>civicrm_mapping</table> | |
33 | <key>id</key> | |
34 | <add>1.2</add> | |
6a488035 TO |
35 | </foreignKey> |
36 | <field> | |
8f069c03 | 37 | <name>name</name> |
110684e4 | 38 | <title>Field Name (or unique reference)</title> |
8f069c03 EM |
39 | <type>varchar</type> |
40 | <length>255</length> | |
41 | <comment>Mapping field key</comment> | |
42 | <add>1.2</add> | |
6a488035 TO |
43 | </field> |
44 | <field> | |
8f069c03 | 45 | <name>contact_type</name> |
110684e4 | 46 | <title>Contact Type</title> |
8f069c03 EM |
47 | <type>varchar</type> |
48 | <length>64</length> | |
49 | <comment>Contact Type in mapping</comment> | |
8f069c03 EM |
50 | <html> |
51 | <type>Select</type> | |
52 | </html> | |
53 | <add>1.2</add> | |
6a488035 TO |
54 | </field> |
55 | <field> | |
8f069c03 | 56 | <name>column_number</name> |
110684e4 | 57 | <title>Column Number to map to</title> |
8f069c03 EM |
58 | <type>int unsigned</type> |
59 | <required>true</required> | |
60 | <comment>Column number for mapping set</comment> | |
61 | <add>1.2</add> | |
6a488035 TO |
62 | </field> |
63 | <field> | |
8f069c03 EM |
64 | <name>location_type_id</name> |
65 | <type>int unsigned</type> | |
10d067c6 | 66 | <title>Location type ID</title> |
8f069c03 EM |
67 | <comment>Location type of this mapping, if required</comment> |
68 | <add>1.2</add> | |
3c5a48c7 | 69 | <pseudoconstant> |
70 | <table>civicrm_location_type</table> | |
71 | <keyColumn>id</keyColumn> | |
72 | <labelColumn>display_name</labelColumn> | |
73 | </pseudoconstant> | |
6a488035 TO |
74 | </field> |
75 | <foreignKey> | |
8f069c03 EM |
76 | <name>location_type_id</name> |
77 | <table>civicrm_location_type</table> | |
78 | <key>id</key> | |
79 | <add>1.2</add> | |
6a488035 TO |
80 | </foreignKey> |
81 | <field> | |
8f069c03 EM |
82 | <name>phone_type</name> |
83 | <type>varchar</type> | |
84 | <length>64</length> | |
85 | <comment>Phone type, if required</comment> | |
86 | <add>1.2</add> | |
87 | <drop>2.2</drop> | |
6a488035 TO |
88 | </field> |
89 | <field> | |
8f069c03 | 90 | <name>phone_type_id</name> |
110684e4 | 91 | <title>Phone Type</title> |
8f069c03 | 92 | <type>int unsigned</type> |
10d067c6 | 93 | <title>Phone type ID</title> |
8f069c03 EM |
94 | <comment>Which type of phone does this number belongs.</comment> |
95 | <add>2.2</add> | |
3c7d2158 | 96 | </field> |
8f069c03 EM |
97 | <field> |
98 | <name>im_provider_id</name> | |
99 | <type>int unsigned</type> | |
10d067c6 | 100 | <title>IM provider ID</title> |
8f069c03 EM |
101 | <comment>Which type of IM Provider does this name belong.</comment> |
102 | <add>3.0</add> | |
103 | <pseudoconstant> | |
104 | <optionGroupName>instant_messenger_service</optionGroupName> | |
105 | </pseudoconstant> | |
106 | <html> | |
107 | <type>Select</type> | |
108 | </html> | |
6a488035 TO |
109 | </field> |
110 | <field> | |
8f069c03 EM |
111 | <name>website_type_id</name> |
112 | <type>int unsigned</type> | |
a265eee1 | 113 | <title>Website type ID</title> |
8f069c03 EM |
114 | <comment>Which type of website does this site belong</comment> |
115 | <add>3.2</add> | |
116 | <pseudoconstant> | |
117 | <optionGroupName>website_type</optionGroupName> | |
118 | </pseudoconstant> | |
119 | <html> | |
120 | <type>Select</type> | |
121 | </html> | |
3c7d2158 | 122 | </field> |
6a488035 | 123 | <field> |
8f069c03 EM |
124 | <name>relationship_type_id</name> |
125 | <type>int unsigned</type> | |
a265eee1 | 126 | <title>Relationship type ID</title> |
8f069c03 EM |
127 | <comment>Relationship type, if required</comment> |
128 | <add>1.2</add> | |
6a488035 TO |
129 | </field> |
130 | <foreignKey> | |
8f069c03 EM |
131 | <name>relationship_type_id</name> |
132 | <table>civicrm_relationship_type</table> | |
133 | <key>id</key> | |
134 | <add>1.2</add> | |
6a488035 | 135 | </foreignKey> |
3c7d2158 | 136 | <field> |
8f069c03 | 137 | <name>relationship_direction</name> |
110684e4 | 138 | <title>Relationship Direction</title> |
8f069c03 EM |
139 | <type>varchar</type> |
140 | <length>6</length> | |
141 | <add>1.7</add> | |
3c7d2158 | 142 | </field> |
6a488035 | 143 | <field> |
8f069c03 | 144 | <name>grouping</name> |
110684e4 | 145 | <title>Field Grouping</title> |
8f069c03 EM |
146 | <type>int unsigned</type> |
147 | <default>1</default> | |
148 | <comment>Used to group mapping_field records into related sets (e.g. for criteria sets in search builder | |
fb607354 | 149 | mappings).</comment> |
8f069c03 | 150 | <add>1.5</add> |
6a488035 TO |
151 | </field> |
152 | <field> | |
8f069c03 EM |
153 | <name>operator</name> |
154 | <type>varchar</type> | |
110684e4 | 155 | <title>Operator</title> |
8f069c03 EM |
156 | <length>16</length> |
157 | <type>enum</type> | |
158 | <comment>SQL WHERE operator for search-builder mapping fields (search criteria).</comment> | |
159 | <pseudoconstant> | |
160 | <callback>CRM_Core_SelectValues::getSearchBuilderOperators</callback> | |
161 | </pseudoconstant> | |
162 | <add>1.5</add> | |
163 | <html> | |
164 | <type>Select</type> | |
165 | </html> | |
6a488035 TO |
166 | </field> |
167 | <field> | |
8f069c03 | 168 | <name>value</name> |
110684e4 | 169 | <title>Search builder where clause</title> |
8f069c03 EM |
170 | <type>varchar</type> |
171 | <length>255</length> | |
172 | <comment>SQL WHERE value for search-builder mapping fields.</comment> | |
173 | <add>1.5</add> | |
6a488035 TO |
174 | </field> |
175 | </table> |