Merge pull request #3649 from colemanw/totten-colemanw-validate
[civicrm-core.git] / xml / schema / Core / MappingField.xml
CommitLineData
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>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Mapping Field ID</comment>
14 <add>1.2</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 <add>1.2</add>
20 </primaryKey>
21 <field>
22 <name>mapping_id</name>
23 <type>int unsigned</type>
24 <required>true</required>
25 <comment>Mapping to which this field belongs</comment>
26 <add>1.2</add>
27 </field>
28 <foreignKey>
29 <name>mapping_id</name>
30 <table>civicrm_mapping</table>
31 <key>id</key>
32 <add>1.2</add>
33 </foreignKey>
34 <field>
35 <name>name</name>
36 <type>varchar</type>
37 <length>255</length>
38 <comment>Mapping field key</comment>
39 <add>1.2</add>
40 </field>
41 <field>
42 <name>contact_type</name>
43 <type>varchar</type>
44 <length>64</length>
45 <comment>Contact Type in mapping</comment>
091fe2a8
CW
46 <pseudoconstant>
47 <table>civicrm_contact_type</table>
48 <keyColumn>name</keyColumn>
49 <labelColumn>label</labelColumn>
50 </pseudoconstant>
614d72ec 51 <html>
e0991796 52 <type>Select</type>
614d72ec 53 </html>
6a488035
TO
54 <add>1.2</add>
55 </field>
56 <field>
57 <name>column_number</name>
58 <type>int unsigned</type>
59 <required>true</required>
60 <comment>Column number for mapping set</comment>
61 <add>1.2</add>
62 </field>
63 <field>
64 <name>location_type_id</name>
65 <type>int unsigned</type>
66 <comment>Location type of this mapping, if required</comment>
67 <add>1.2</add>
68 </field>
69 <foreignKey>
70 <name>location_type_id</name>
71 <table>civicrm_location_type</table>
72 <key>id</key>
73 <add>1.2</add>
74 </foreignKey>
75 <field>
76 <name>phone_type</name>
77 <type>varchar</type>
78 <length>64</length>
79 <comment>Phone type, if required</comment>
80 <add>1.2</add>
81 <drop>2.2</drop>
82 </field>
83 <field>
84 <name>phone_type_id</name>
85 <type>int unsigned</type>
86 <comment>Which type of phone does this number belongs.</comment>
87 <add>2.2</add>
3c7d2158 88 </field>
6a488035 89 <field>
e7e657f0
AS
90 <name>im_provider_id</name>
91 <type>int unsigned</type>
92 <comment>Which type of IM Provider does this name belong.</comment>
93 <add>3.0</add>
94 <pseudoconstant>
95 <optionGroupName>instant_messenger_service</optionGroupName>
96 </pseudoconstant>
614d72ec 97 <html>
e0991796 98 <type>Select</type>
614d72ec 99 </html>
6a488035
TO
100 </field>
101 <field>
102 <name>website_type_id</name>
103 <type>int unsigned</type>
104 <comment>Which type of website does this site belong</comment>
105 <add>3.2</add>
cbf48754
AS
106 <pseudoconstant>
107 <optionGroupName>website_type</optionGroupName>
108 </pseudoconstant>
614d72ec 109 <html>
e0991796 110 <type>Select</type>
614d72ec 111 </html>
3c7d2158 112 </field>
6a488035
TO
113 <field>
114 <name>relationship_type_id</name>
115 <type>int unsigned</type>
116 <comment>Relationship type, if required</comment>
117 <add>1.2</add>
118 </field>
119 <foreignKey>
120 <name>relationship_type_id</name>
121 <table>civicrm_relationship_type</table>
122 <key>id</key>
123 <add>1.2</add>
124 </foreignKey>
3c7d2158 125 <field>
126 <name>relationship_direction</name>
127 <type>varchar</type>
128 <length>6</length>
129 <add>1.7</add>
130 </field>
6a488035
TO
131 <field>
132 <name>grouping</name>
133 <type>int unsigned</type>
011aeb62 134 <default>1</default>
6a488035
TO
135 <comment>Used to group mapping_field records into related sets (e.g. for criteria sets in search builder mappings).</comment>
136 <add>1.5</add>
137 </field>
138 <field>
139 <name>operator</name>
909ca5f6 140 <type>varchar</type>
141 <length>16</length>
6a488035 142 <type>enum</type>
6a488035 143 <comment>SQL WHERE operator for search-builder mapping fields (search criteria).</comment>
e204d358 144 <pseudoconstant>
93bfa565 145 <callback>CRM_Core_SelectValues::getSearchBuilderOperators</callback>
e204d358 146 </pseudoconstant>
6a488035 147 <add>1.5</add>
614d72ec 148 <html>
149 <type>Select</type>
150 </html>
6a488035
TO
151 </field>
152 <field>
153 <name>value</name>
154 <type>varchar</type>
155 <length>255</length>
156 <comment>SQL WHERE value for search-builder mapping fields.</comment>
157 <add>1.5</add>
158 </field>
159</table>