Merge pull request #1023 from davecivicrm/CRM-9759
[civicrm-core.git] / xml / schema / Financial / EntityFinancialAccount.xml
index e9273bb442f83430a5f665580baf9a84842e3a05..61d2586f778b3f2bd4a9cb3637cab597826b11a7 100755 (executable)
@@ -1,36 +1,36 @@
-<?xml version="1.0" encoding="iso-8859-1" ?>  
+<?xml version="1.0" encoding="iso-8859-1" ?>
 
-<table>  
-  <base>CRM/Financial</base>  
-  <class>EntityFinancialAccount</class>  
-  <name>civicrm_entity_financial_account</name>  
+<table>
+  <base>CRM/Financial</base>
+  <class>EntityFinancialAccount</class>
+  <name>civicrm_entity_financial_account</name>
   <add>4.3</add>
   <comment>Map between an entity and a financial account, where there is a specific relationship between the financial account and the entity, e.g. Income Account for or AR Account for</comment>
-  <log>true</log> 
-  <field>  
-    <name>id</name>  
-    <type>int unsigned</type>  
-    <required>true</required>  
-    <comment>ID</comment>  
-    <add>4.3</add>  
-  </field>  
-  <primaryKey>  
-    <name>id</name>  
-    <autoincrement>true</autoincrement>  
-  </primaryKey>  
+  <log>true</log>
+  <field>
+    <name>id</name>
+    <type>int unsigned</type>
+    <required>true</required>
+    <comment>ID</comment>
+    <add>4.3</add>
+  </field>
+  <primaryKey>
+    <name>id</name>
+    <autoincrement>true</autoincrement>
+  </primaryKey>
   <field>
     <name>entity_table</name>
     <type>varchar</type>
     <length>64</length>
-    <required>true</required> 
+    <required>true</required>
     <import>true</import>
     <add>4.3</add>
     <comment>Links to an entity_table like civicrm_financial_type</comment>
   </field>
-  <field>  
-    <name>entity_id</name>  
-    <type>int unsigned</type>  
-    <required>true</required>  
+  <field>
+    <name>entity_id</name>
+    <type>int unsigned</type>
+    <required>true</required>
     <add>4.3</add>
     <comment>Links to an id in the entity_table, such as vid in civicrm_financial_type</comment>
   </field>
     <typeColumn>entity_table</typeColumn>
     <add>4.3</add>
   </dynamicForeignKey>
-  <field>  
-    <name>account_relationship</name>  
-    <type>int unsigned</type>  
+  <field>
+    <name>account_relationship</name>
+    <type>int unsigned</type>
     <required>true</required>
-    <add>4.3</add>  
+    <add>4.3</add>
     <comment>FK to a new civicrm_option_value (account_relationship)</comment>
     <pseudoconstant>
       <optionGroupName>account_relationship</optionGroupName>
     </pseudoconstant>
-  </field>  
+  </field>
   <field>
-    <name>financial_account_id</name> 
-    <type>int unsigned</type>  
+    <name>financial_account_id</name>
+    <type>int unsigned</type>
     <required>true</required>
-    <add>4.3</add>        
+    <add>4.3</add>
     <comment>FK to the financial_account_id</comment>
     <pseudoconstant>
       <table>civicrm_financial_account</table>
       <labelColumn>name</labelColumn>
     </pseudoconstant>
   </field>
-  <foreignKey> 
-    <name>financial_account_id</name> 
-    <table>civicrm_financial_account</table> 
-    <key>id</key> 
-    <add>4.3</add> 
+  <foreignKey>
+    <name>financial_account_id</name>
+    <table>civicrm_financial_account</table>
+    <key>id</key>
+    <add>4.3</add>
     <onDelete>RESTRICT</onDelete>
   </foreignKey>
 </table>