<add>1.1</add>
<log>true</log>
<field>
- <name>id</name>
- <type>int unsigned</type>
- <required>true</required>
- <comment>Unique Email ID</comment>
- <add>1.1</add>
+ <name>id</name>
+ <type>int unsigned</type>
+ <required>true</required>
+ <comment>Unique Email ID</comment>
+ <add>1.1</add>
</field>
<primaryKey>
- <name>id</name>
- <autoincrement>true</autoincrement>
+ <name>id</name>
+ <autoincrement>true</autoincrement>
</primaryKey>
<field>
- <name>contact_id</name>
- <type>int unsigned</type>
- <comment>FK to Contact ID</comment>
- <add>2.0</add>
+ <name>contact_id</name>
+ <type>int unsigned</type>
+ <comment>FK to Contact ID</comment>
+ <add>2.0</add>
</field>
<foreignKey>
- <name>contact_id</name>
- <table>civicrm_contact</table>
- <key>id</key>
- <add>2.0</add>
- <onDelete>CASCADE</onDelete>
+ <name>contact_id</name>
+ <table>civicrm_contact</table>
+ <key>id</key>
+ <add>2.0</add>
+ <onDelete>CASCADE</onDelete>
</foreignKey>
<field>
- <name>location_type_id</name>
- <title>Email Location Type</title>
- <type>int unsigned</type>
- <comment>Which Location does this email belong to.</comment>
- <add>2.0</add>
- <pseudoconstant>
- <table>civicrm_location_type</table>
- <keyColumn>id</keyColumn>
- <labelColumn>display_name</labelColumn>
- </pseudoconstant>
- <html>
- <type>Select</type>
- </html>
+ <name>location_type_id</name>
+ <title>Email Location Type</title>
+ <type>int unsigned</type>
+ <comment>Which Location does this email belong to.</comment>
+ <add>2.0</add>
+ <pseudoconstant>
+ <table>civicrm_location_type</table>
+ <keyColumn>id</keyColumn>
+ <labelColumn>display_name</labelColumn>
+ </pseudoconstant>
+ <html>
+ <type>Select</type>
+ </html>
</field>
<index>
<name>index_location_type</name>
<add>2.0</add>
</index>
<field>
- <name>email</name>
- <type>varchar</type>
- <length>254</length>
- <html>
- <type>Text</type>
- <size>MEDIUM</size>
- </html>
- <import>true</import>
- <headerPattern>/e.?mail/i</headerPattern>
- <dataPattern>/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/</dataPattern>
- <rule>email</rule>
- <comment>Email address</comment>
- <add>1.1</add>
+ <name>email</name>
+ <type>varchar</type>
+ <length>254</length>
+ <html>
+ <type>Text</type>
+ <size>MEDIUM</size>
+ </html>
+ <import>true</import>
+ <headerPattern>/e.?mail/i</headerPattern>
+ <dataPattern>/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/</dataPattern>
+ <rule>email</rule>
+ <comment>Email address</comment>
+ <add>1.1</add>
</field>
<index>
- <name>UI_email</name>
- <fieldName>email</fieldName>
- <add>1.5</add>
+ <name>UI_email</name>
+ <fieldName>email</fieldName>
+ <add>1.5</add>
</index>
<field>
- <name>is_primary</name>
- <type>boolean</type>
- <default>0</default>
- <comment>Is this the primary email for this contact and location.</comment>
- <add>1.1</add>
+ <name>is_primary</name>
+ <type>boolean</type>
+ <default>0</default>
+ <comment>Is this the primary email for this contact and location.</comment>
+ <add>1.1</add>
</field>
<field>
- <name>is_primary</name>
- <type>boolean</type>
- <default>0</default>
- <comment>Is this the primary?</comment>
- <add>2.0</add>
+ <name>is_primary</name>
+ <type>boolean</type>
+ <default>0</default>
+ <comment>Is this the primary?</comment>
+ <add>2.0</add>
</field>
<index>
<name>index_is_primary</name>
<add>2.0</add>
</index>
<field>
- <name>is_billing</name>
- <type>boolean</type>
- <default>0</default>
- <comment>Is this the billing?</comment>
- <add>2.0</add>
+ <name>is_billing</name>
+ <type>boolean</type>
+ <default>0</default>
+ <comment>Is this the billing?</comment>
+ <add>2.0</add>
</field>
<index>
<name>index_is_billing</name>