Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Core</base> | |
5 | <class>Country</class> | |
6 | <name>civicrm_country</name> | |
7 | <add>1.1</add> | |
8ab43c93 | 8 | <labelField>name</labelField> |
6a488035 | 9 | <field> |
f84ce22c | 10 | <name>id</name> |
335ca4d9 | 11 | <title>Country ID</title> |
f84ce22c EM |
12 | <type>int unsigned</type> |
13 | <required>true</required> | |
047c5009 | 14 | <comment>Country ID</comment> |
0481e12c A |
15 | <html> |
16 | <type>Number</type> | |
17 | </html> | |
f84ce22c | 18 | <add>1.1</add> |
6a488035 TO |
19 | </field> |
20 | <primaryKey> | |
f84ce22c EM |
21 | <name>id</name> |
22 | <autoincrement>true</autoincrement> | |
6a488035 TO |
23 | </primaryKey> |
24 | <field> | |
f84ce22c EM |
25 | <name>name</name> |
26 | <title>Country</title> | |
27 | <type>varchar</type> | |
28 | <length>64</length> | |
29 | <import>true</import> | |
30 | <headerPattern>/country/i</headerPattern> | |
31 | <dataPattern>/^[A-Z][a-z]+\.?(\s+[A-Z][a-z]+){0,3}$/</dataPattern> | |
32 | <comment>Country Name</comment> | |
33 | <add>1.1</add> | |
6a488035 TO |
34 | </field> |
35 | <field> | |
f84ce22c | 36 | <name>iso_code</name> |
335ca4d9 | 37 | <title>Country ISO Code</title> |
f84ce22c EM |
38 | <type>char</type> |
39 | <length>2</length> | |
40 | <comment>ISO Code</comment> | |
41 | <add>1.1</add> | |
6a488035 TO |
42 | </field> |
43 | <field> | |
f84ce22c | 44 | <name>country_code</name> |
335ca4d9 | 45 | <title>Country Phone Prefix</title> |
f84ce22c EM |
46 | <type>varchar</type> |
47 | <length>4</length> | |
48 | <comment>National prefix to be used when dialing TO this country.</comment> | |
49 | <add>1.1</add> | |
6a488035 TO |
50 | </field> |
51 | <field> | |
f84ce22c | 52 | <name>address_format_id</name> |
57e94608 | 53 | <title>Address Format ID</title> |
f84ce22c EM |
54 | <type>int unsigned</type> |
55 | <comment>Foreign key to civicrm_address_format.id.</comment> | |
57e94608 A |
56 | <html> |
57 | <label>Address Format</label> | |
58 | </html> | |
f84ce22c | 59 | <add>3.2</add> |
6a488035 TO |
60 | </field> |
61 | <foreignKey> | |
f84ce22c EM |
62 | <name>address_format_id</name> |
63 | <table>civicrm_address_format</table> | |
64 | <key>id</key> | |
65 | <add>3.2</add> | |
6a488035 TO |
66 | </foreignKey> |
67 | <field> | |
f84ce22c | 68 | <name>idd_prefix</name> |
335ca4d9 | 69 | <title>Outgoing Phone Prefix</title> |
f84ce22c EM |
70 | <type>varchar</type> |
71 | <length>4</length> | |
72 | <comment>International direct dialing prefix from within the country TO another country</comment> | |
73 | <add>1.1</add> | |
6a488035 TO |
74 | </field> |
75 | <field> | |
f84ce22c | 76 | <name>ndd_prefix</name> |
335ca4d9 | 77 | <title>Area Code</title> |
f84ce22c EM |
78 | <type>varchar</type> |
79 | <length>4</length> | |
80 | <comment>Access prefix to call within a country to a different area</comment> | |
81 | <add>1.1</add> | |
6a488035 TO |
82 | </field> |
83 | <field> | |
f84ce22c | 84 | <name>region_id</name> |
b06ca616 | 85 | <title>World Region ID</title> |
f84ce22c EM |
86 | <type>int unsigned</type> |
87 | <required>true</required> | |
88 | <comment>Foreign key to civicrm_worldregion.id.</comment> | |
57e94608 A |
89 | <html> |
90 | <label>World Region</label> | |
91 | </html> | |
f84ce22c | 92 | <add>1.8</add> |
65c86f7d | 93 | <localize_context>country</localize_context> |
94 | <pseudoconstant> | |
95 | <table>civicrm_worldregion</table> | |
96 | <keyColumn>id</keyColumn> | |
97 | <labelColumn>name</labelColumn> | |
98 | </pseudoconstant> | |
6a488035 TO |
99 | </field> |
100 | <foreignKey> | |
f84ce22c EM |
101 | <name>region_id</name> |
102 | <table>civicrm_worldregion</table> | |
103 | <key>id</key> | |
104 | <add>1.8</add> | |
6a488035 TO |
105 | </foreignKey> |
106 | <field> | |
f84ce22c | 107 | <name>is_province_abbreviated</name> |
335ca4d9 | 108 | <title>Abbreviate Province?</title> |
f84ce22c EM |
109 | <type>boolean</type> |
110 | <default>0</default> | |
c1e814c7 | 111 | <required>true</required> |
f84ce22c EM |
112 | <comment>Should state/province be displayed as abbreviation for contacts from this country?</comment> |
113 | <add>3.1</add> | |
6a488035 | 114 | </field> |
005f02ec MW |
115 | <field> |
116 | <name>is_active</name> | |
117 | <title>Country Is Active</title> | |
118 | <type>boolean</type> | |
119 | <default>1</default> | |
c1e814c7 | 120 | <required>true</required> |
005f02ec MW |
121 | <comment>Is this Country active?</comment> |
122 | <add>5.35</add> | |
123 | </field> | |
6a488035 TO |
124 | <index> |
125 | <name>UI_name_iso_code</name> | |
126 | <fieldName>name</fieldName> | |
127 | <fieldName>iso_code</fieldName> | |
128 | <unique>true</unique> | |
129 | <add>1.1</add> | |
130 | </index> | |
131 | </table> |