Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Core</base> | |
5 | <class>StateProvince</class> | |
6 | <name>civicrm_state_province</name> | |
7 | <add>1.1</add> | |
8 | <field> | |
8f069c03 | 9 | <name>id</name> |
fa6ace1a | 10 | <title>State ID</title> |
8f069c03 EM |
11 | <type>int unsigned</type> |
12 | <required>true</required> | |
757069de | 13 | <comment>State/Province ID</comment> |
8f069c03 | 14 | <add>1.1</add> |
6a488035 TO |
15 | </field> |
16 | <primaryKey> | |
8f069c03 EM |
17 | <name>id</name> |
18 | <autoincrement>false</autoincrement> | |
6a488035 TO |
19 | </primaryKey> |
20 | <field> | |
8f069c03 EM |
21 | <name>name</name> |
22 | <title>State</title> | |
23 | <type>varchar</type> | |
24 | <length>64</length> | |
25 | <import>true</import> | |
26 | <headerPattern>/state|prov(ince)?/i</headerPattern> | |
27 | <dataPattern>/[A-Z]{2}/</dataPattern> | |
757069de | 28 | <comment>Name of State/Province</comment> |
8f069c03 | 29 | <add>1.1</add> |
6a488035 TO |
30 | </field> |
31 | <field> | |
8f069c03 EM |
32 | <name>abbreviation</name> |
33 | <title>State Abbreviation</title> | |
34 | <type>varchar</type> | |
35 | <length>4</length> | |
757069de | 36 | <comment>2-4 Character Abbreviation of State/Province</comment> |
8f069c03 | 37 | <add>1.1</add> |
6a488035 TO |
38 | </field> |
39 | <field> | |
8f069c03 | 40 | <name>country_id</name> |
63cafc38 | 41 | <title>Country</title> |
8f069c03 EM |
42 | <type>int unsigned</type> |
43 | <required>true</required> | |
757069de | 44 | <comment>ID of Country that State/Province belong</comment> |
8f069c03 | 45 | <add>1.1</add> |
6a488035 TO |
46 | </field> |
47 | <foreignKey> | |
8f069c03 EM |
48 | <name>country_id</name> |
49 | <table>civicrm_country</table> | |
50 | <key>id</key> | |
51 | <add>1.1</add> | |
6a488035 TO |
52 | </foreignKey> |
53 | <index> | |
54 | <name>UI_name_country_id</name> | |
55 | <fieldName>name</fieldName> | |
56 | <fieldName>country_id</fieldName> | |
57 | <unique>true</unique> | |
58 | <add>1.1</add> | |
59 | </index> | |
60 | </table> |