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> | |
5ad66c4f AH |
8 | <title>State/Province</title> |
9 | <titlePlural>States/Provinces</titlePlural> | |
6a488035 | 10 | <field> |
8f069c03 | 11 | <name>id</name> |
fa6ace1a | 12 | <title>State ID</title> |
8f069c03 EM |
13 | <type>int unsigned</type> |
14 | <required>true</required> | |
757069de | 15 | <comment>State/Province ID</comment> |
8f069c03 | 16 | <add>1.1</add> |
6a488035 TO |
17 | </field> |
18 | <primaryKey> | |
8f069c03 EM |
19 | <name>id</name> |
20 | <autoincrement>false</autoincrement> | |
6a488035 TO |
21 | </primaryKey> |
22 | <field> | |
8f069c03 EM |
23 | <name>name</name> |
24 | <title>State</title> | |
25 | <type>varchar</type> | |
26 | <length>64</length> | |
27 | <import>true</import> | |
28 | <headerPattern>/state|prov(ince)?/i</headerPattern> | |
29 | <dataPattern>/[A-Z]{2}/</dataPattern> | |
757069de | 30 | <comment>Name of State/Province</comment> |
8f069c03 | 31 | <add>1.1</add> |
6a488035 TO |
32 | </field> |
33 | <field> | |
8f069c03 EM |
34 | <name>abbreviation</name> |
35 | <title>State Abbreviation</title> | |
36 | <type>varchar</type> | |
37 | <length>4</length> | |
757069de | 38 | <comment>2-4 Character Abbreviation of State/Province</comment> |
8f069c03 | 39 | <add>1.1</add> |
6a488035 TO |
40 | </field> |
41 | <field> | |
8f069c03 | 42 | <name>country_id</name> |
63cafc38 | 43 | <title>Country</title> |
8f069c03 EM |
44 | <type>int unsigned</type> |
45 | <required>true</required> | |
757069de | 46 | <comment>ID of Country that State/Province belong</comment> |
8f069c03 | 47 | <add>1.1</add> |
6a488035 TO |
48 | </field> |
49 | <foreignKey> | |
8f069c03 EM |
50 | <name>country_id</name> |
51 | <table>civicrm_country</table> | |
52 | <key>id</key> | |
53 | <add>1.1</add> | |
6a488035 | 54 | </foreignKey> |
005f02ec MW |
55 | <field> |
56 | <name>is_active</name> | |
57 | <title>StateProvince Is Active</title> | |
58 | <type>boolean</type> | |
59 | <default>1</default> | |
60 | <comment>Is this StateProvince active?</comment> | |
61 | <add>5.35</add> | |
62 | </field> | |
6a488035 TO |
63 | <index> |
64 | <name>UI_name_country_id</name> | |
65 | <fieldName>name</fieldName> | |
66 | <fieldName>country_id</fieldName> | |
67 | <unique>true</unique> | |
68 | <add>1.1</add> | |
69 | </index> | |
70 | </table> |