Merge remote-tracking branch 'upstream/4.4' into 4.4-4.5-2014-09-29-14-51-22
[civicrm-core.git] / xml / schema / Core / County.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>County</class>
6 <name>civicrm_county</name>
7 <add>1.1</add>
8 <field>
9 <name>id</name>
10 <type>int unsigned</type>
11 <required>true</required>
12 <comment>County ID</comment>
13 <add>1.1</add>
14 </field>
15 <primaryKey>
16 <name>id</name>
17 <autoincrement>false</autoincrement>
18 </primaryKey>
19 <field>
20 <name>name</name>
21 <title>County</title>
22 <type>varchar</type>
23 <length>64</length>
24 <import>true</import>
25 <headerPattern>/county/i</headerPattern>
26 <dataPattern>/[A-Z]{2}/</dataPattern>
27 <comment>Name of County</comment>
28 <add>1.1</add>
29 </field>
30 <field>
31 <name>abbreviation</name>
32 <title>County Abbreviation</title>
33 <type>varchar</type>
34 <length>4</length>
35 <comment>2-4 Character Abbreviation of County</comment>
36 <add>1.1</add>
37 </field>
38 <field>
39 <name>state_province_id</name>
40 <type>int unsigned</type>
41 <required>true</required>
42 <comment>ID of State/Province that County belongs</comment>
43 <add>1.1</add>
44 </field>
45 <foreignKey>
46 <name>state_province_id</name>
47 <table>civicrm_state_province</table>
48 <key>id</key>
49 <add>1.1</add>
50 </foreignKey>
51 <index>
52 <name>UI_name_state_id</name>
53 <fieldName>name</fieldName>
54 <fieldName>state_province_id</fieldName>
55 <unique>true</unique>
56 <add>1.1</add>
57 </index>
58 </table>