Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2015-02-02-18-36-16
[civicrm-core.git] / xml / schema / Core / Email.xml
index df0340cab5ab0b87949cc22324dbb1df52d9ee96..a731fae3cc5ca5ee72a7ae7de52c08492a94dc4f 100644 (file)
@@ -8,43 +8,45 @@
   <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>
+    <title>Email ID</title>
+    <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>
+    <title>Email Contact</title>
+    <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>
+    <title>Email</title>
+    <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>
+    <title>Is Primary email</title>
+    <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>
+    <title>Is Billing Email?</title>
+    <type>boolean</type>
+    <default>0</default>
+    <comment>Is this the billing?</comment>
+    <add>2.0</add>
   </field>
   <index>
     <name>index_is_billing</name>