Merge pull request #1023 from davecivicrm/CRM-9759
[civicrm-core.git] / xml / schema / Financial / EntityFinancialTrxn.xml
index 26935a5b8fd9a0679c2831926baf2a48121ecf03..a1e92170c63a8050f87e60263a3ac4b185e98734 100755 (executable)
@@ -1,63 +1,63 @@
-<?xml version="1.0" encoding="iso-8859-1" ?>  
+<?xml version="1.0" encoding="iso-8859-1" ?>
 
-<table>  
-  <base>CRM/Financial</base>  
-  <class>EntityFinancialTrxn</class>  
-  <name>civicrm_entity_financial_trxn</name>  
-  <add>3.2</add>  
-  <field>  
-    <name>id</name>  
-    <type>int unsigned</type>  
-    <required>true</required>  
-    <comment>ID</comment>  
-    <add>3.2</add>  
-  </field>  
-  <primaryKey>  
-    <name>id</name>  
-    <autoincrement>true</autoincrement>  
-  </primaryKey>  
+<table>
+  <base>CRM/Financial</base>
+  <class>EntityFinancialTrxn</class>
+  <name>civicrm_entity_financial_trxn</name>
+  <add>3.2</add>
+  <field>
+    <name>id</name>
+    <type>int unsigned</type>
+    <required>true</required>
+    <comment>ID</comment>
+    <add>3.2</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>3.2</add>
     <comment>May contain civicrm_order, civicrm_order_line_itme, civicrm_order_line_sub_item, civicrm_grant, civicrm_credit_adjustment</comment>
   </field>
-  <field>  
-    <name>entity_id</name>  
-    <type>int unsigned</type>  
-    <required>true</required>  
-    <add>3.2</add>  
+  <field>
+    <name>entity_id</name>
+    <type>int unsigned</type>
+    <required>true</required>
+    <add>3.2</add>
   </field>
   <dynamicForeignKey>
     <idColumn>entity_id</idColumn>
     <typeColumn>entity_table</typeColumn>
-    <add>3.2</add>  
+    <add>3.2</add>
   </dynamicForeignKey>
-  <field>  
-    <name>financial_trxn_id</name>  
-    <type>int unsigned</type>  
-    <add>3.2</add>  
-  </field>  
-  <foreignKey> 
-    <name>financial_trxn_id</name> 
-    <table>civicrm_financial_trxn</table> 
-    <key>id</key> 
-    <add>3.2</add> 
+  <field>
+    <name>financial_trxn_id</name>
+    <type>int unsigned</type>
+    <add>3.2</add>
+  </field>
+  <foreignKey>
+    <name>financial_trxn_id</name>
+    <table>civicrm_financial_trxn</table>
+    <key>id</key>
+    <add>3.2</add>
     <onDelete>SET NULL</onDelete>
   </foreignKey>
-  <field>    
-    <name>amount</name>    
-    <type>decimal</type>    
+  <field>
+    <name>amount</name>
+    <type>decimal</type>
     <required>true</required>
     <import>true</import>
     <headerPattern>/amount/i</headerPattern>
     <dataPattern>/^\d+(\.\d{2})?$/</dataPattern>
     <comment>allocated amount of transaction to this entity</comment>
-    <add>3.2</add>    
-  </field> 
+    <add>3.2</add>
+  </field>
   <field>
     <name>currency</name>
     <type>varchar</type>
     <name>UI_entity_financial_trxn_entity_table</name>
     <fieldName>entity_table</fieldName>
     <add>4.3</add>
-  </index> 
+  </index>
   <index>
     <name>UI_entity_financial_trxn_entity_id</name>
     <fieldName>entity_id</fieldName>
     <add>4.3</add>
-  </index> 
+  </index>
 </table>