-<?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>