<name>civicrm_county</name>
<add>1.1</add>
<field>
- <name>id</name>
- <type>int unsigned</type>
- <required>true</required>
- <comment>County ID</comment>
- <add>1.1</add>
+ <name>id</name>
+ <title>County ID</title>
+ <type>int unsigned</type>
+ <required>true</required>
+ <comment>County ID</comment>
+ <add>1.1</add>
</field>
<primaryKey>
- <name>id</name>
- <autoincrement>false</autoincrement>
+ <name>id</name>
+ <autoincrement>false</autoincrement>
</primaryKey>
<field>
- <name>name</name>
- <title>County</title>
- <type>varchar</type>
- <length>64</length>
- <import>true</import>
- <headerPattern>/county/i</headerPattern>
- <dataPattern>/[A-Z]{2}/</dataPattern>
- <comment>Name of County</comment>
- <add>1.1</add>
+ <name>name</name>
+ <title>County</title>
+ <type>varchar</type>
+ <length>64</length>
+ <import>true</import>
+ <headerPattern>/county/i</headerPattern>
+ <dataPattern>/[A-Z]{2}/</dataPattern>
+ <comment>Name of County</comment>
+ <add>1.1</add>
</field>
<field>
- <name>abbreviation</name>
- <title>County Abbreviation</title>
- <type>varchar</type>
- <length>4</length>
- <comment>2-4 Character Abbreviation of County</comment>
- <add>1.1</add>
+ <name>abbreviation</name>
+ <title>County Abbreviation</title>
+ <type>varchar</type>
+ <length>4</length>
+ <comment>2-4 Character Abbreviation of County</comment>
+ <add>1.1</add>
</field>
<field>
- <name>state_province_id</name>
- <type>int unsigned</type>
- <required>true</required>
- <comment>ID of State / Province that County belongs</comment>
- <add>1.1</add>
+ <name>state_province_id</name>
+ <title>State</title>
+ <type>int unsigned</type>
+ <required>true</required>
+ <comment>ID of State/Province that County belongs</comment>
+ <add>1.1</add>
+ <pseudoconstant>
+ <table>civicrm_state_province</table>
+ <keyColumn>id</keyColumn>
+ <labelColumn>name</labelColumn>
+ </pseudoconstant>
</field>
<foreignKey>
- <name>state_province_id</name>
- <table>civicrm_state_province</table>
- <key>id</key>
- <add>1.1</add>
+ <name>state_province_id</name>
+ <table>civicrm_state_province</table>
+ <key>id</key>
+ <add>1.1</add>
</foreignKey>
<index>
<name>UI_name_state_id</name>