| 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 | <title>Mapping Field ID</title> |
| 13 | <required>true</required> |
| 14 | <comment>Mapping Field ID</comment> |
| 15 | <add>1.2</add> |
| 16 | </field> |
| 17 | <primaryKey> |
| 18 | <name>id</name> |
| 19 | <autoincrement>true</autoincrement> |
| 20 | <add>1.2</add> |
| 21 | </primaryKey> |
| 22 | <field> |
| 23 | <name>mapping_id</name> |
| 24 | <type>int unsigned</type> |
| 25 | <title>Mapping ID</title> |
| 26 | <required>true</required> |
| 27 | <comment>Mapping to which this field belongs</comment> |
| 28 | <add>1.2</add> |
| 29 | </field> |
| 30 | <foreignKey> |
| 31 | <name>mapping_id</name> |
| 32 | <table>civicrm_mapping</table> |
| 33 | <key>id</key> |
| 34 | <add>1.2</add> |
| 35 | </foreignKey> |
| 36 | <field> |
| 37 | <name>name</name> |
| 38 | <title>Field Name (or unique reference)</title> |
| 39 | <type>varchar</type> |
| 40 | <length>255</length> |
| 41 | <comment>Mapping field key</comment> |
| 42 | <add>1.2</add> |
| 43 | </field> |
| 44 | <field> |
| 45 | <name>contact_type</name> |
| 46 | <title>Contact Type</title> |
| 47 | <type>varchar</type> |
| 48 | <length>64</length> |
| 49 | <comment>Contact Type in mapping</comment> |
| 50 | <html> |
| 51 | <type>Select</type> |
| 52 | </html> |
| 53 | <add>1.2</add> |
| 54 | </field> |
| 55 | <field> |
| 56 | <name>column_number</name> |
| 57 | <title>Column Number to map to</title> |
| 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 | <title>Location type ID</title> |
| 67 | <comment>Location type of this mapping, if required</comment> |
| 68 | <add>1.2</add> |
| 69 | <pseudoconstant> |
| 70 | <table>civicrm_location_type</table> |
| 71 | <keyColumn>id</keyColumn> |
| 72 | <labelColumn>display_name</labelColumn> |
| 73 | </pseudoconstant> |
| 74 | </field> |
| 75 | <foreignKey> |
| 76 | <name>location_type_id</name> |
| 77 | <table>civicrm_location_type</table> |
| 78 | <key>id</key> |
| 79 | <add>1.2</add> |
| 80 | </foreignKey> |
| 81 | <field> |
| 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> |
| 88 | </field> |
| 89 | <field> |
| 90 | <name>phone_type_id</name> |
| 91 | <title>Phone Type</title> |
| 92 | <type>int unsigned</type> |
| 93 | <title>Phone type ID</title> |
| 94 | <comment>Which type of phone does this number belongs.</comment> |
| 95 | <add>2.2</add> |
| 96 | </field> |
| 97 | <field> |
| 98 | <name>im_provider_id</name> |
| 99 | <type>int unsigned</type> |
| 100 | <title>IM provider ID</title> |
| 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> |
| 109 | </field> |
| 110 | <field> |
| 111 | <name>website_type_id</name> |
| 112 | <type>int unsigned</type> |
| 113 | <title>Website type ID</title> |
| 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> |
| 122 | </field> |
| 123 | <field> |
| 124 | <name>relationship_type_id</name> |
| 125 | <type>int unsigned</type> |
| 126 | <title>Relationship type ID</title> |
| 127 | <comment>Relationship type, if required</comment> |
| 128 | <add>1.2</add> |
| 129 | </field> |
| 130 | <foreignKey> |
| 131 | <name>relationship_type_id</name> |
| 132 | <table>civicrm_relationship_type</table> |
| 133 | <key>id</key> |
| 134 | <add>1.2</add> |
| 135 | </foreignKey> |
| 136 | <field> |
| 137 | <name>relationship_direction</name> |
| 138 | <title>Relationship Direction</title> |
| 139 | <type>varchar</type> |
| 140 | <length>6</length> |
| 141 | <add>1.7</add> |
| 142 | </field> |
| 143 | <field> |
| 144 | <name>grouping</name> |
| 145 | <title>Field Grouping</title> |
| 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 |
| 149 | mappings).</comment> |
| 150 | <add>1.5</add> |
| 151 | </field> |
| 152 | <field> |
| 153 | <name>operator</name> |
| 154 | <type>varchar</type> |
| 155 | <title>Operator</title> |
| 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> |
| 166 | </field> |
| 167 | <field> |
| 168 | <name>value</name> |
| 169 | <title>Search builder where clause</title> |
| 170 | <type>varchar</type> |
| 171 | <length>255</length> |
| 172 | <comment>SQL WHERE value for search-builder mapping fields.</comment> |
| 173 | <add>1.5</add> |
| 174 | </field> |
| 175 | </table> |