-<?xml version="1.0" encoding="iso-8859-1" ?>
+<?xml version="1.0" encoding="iso-8859-1" ?>
-<table>
- <base>CRM/Contribute</base>
- <class>ContributionProduct</class>
- <name>civicrm_contribution_product</name>
- <add>1.4</add>
+<table>
+ <base>CRM/Contribute</base>
+ <class>ContributionProduct</class>
+ <name>civicrm_contribution_product</name>
+ <add>1.4</add>
<log>true</log>
- <field>
- <name>id</name>
- <type>int unsigned</type>
- <required>true</required>
- <add>1.4</add>
- </field>
- <primaryKey>
- <name>id</name>
- <autoincrement>true</autoincrement>
- </primaryKey>
- <field>
- <name>product_id</name>
+ <field>
+ <name>id</name>
<type>int unsigned</type>
- <required>true</required>
- <add>1.4</add>
- </field>
- <field>
- <name>contribution_id</name>
- <type>int unsigned</type>
- <required>true</required>
- <add>1.4</add>
- </field>
- <foreignKey>
- <name>contribution_id</name>
- <table>civicrm_contribution</table>
- <key>id</key>
- <add>1.4</add>
+ <required>true</required>
+ <add>1.4</add>
+ </field>
+ <primaryKey>
+ <name>id</name>
+ <autoincrement>true</autoincrement>
+ </primaryKey>
+ <field>
+ <name>product_id</name>
+ <type>int unsigned</type>
+ <required>true</required>
+ <add>1.4</add>
+ </field>
+ <field>
+ <name>contribution_id</name>
+ <type>int unsigned</type>
+ <required>true</required>
+ <add>1.4</add>
+ </field>
+ <foreignKey>
+ <name>contribution_id</name>
+ <table>civicrm_contribution</table>
+ <key>id</key>
+ <add>1.4</add>
<onDelete>CASCADE</onDelete>
- </foreignKey>
- <field>
- <name>product_option</name>
+ </foreignKey>
+ <field>
+ <name>product_option</name>
<title>Product Option</title>
- <type>varchar</type>
+ <type>varchar</type>
<length>255</length>
<export>true</export>
- <comment>Option value selected if applicable - e.g. color, size etc.</comment>
- <add>1.4</add>
- </field>
- <field>
- <name>quantity</name>
+ <comment>Option value selected if applicable - e.g. color, size etc.</comment>
+ <add>1.4</add>
+ </field>
+ <field>
+ <name>quantity</name>
<title>Quantity</title>
<type>int</type>
<value>1</value>
<export>true</export>
- <comment></comment>
- <add>1.4</add>
- </field>
- <field>
- <name>total_cost</name>
- <type>decimal</type>
+ <comment></comment>
+ <add>1.4</add>
+ </field>
+ <field>
+ <name>total_cost</name>
+ <type>decimal</type>
<required>true</required>
<import>true</import>
<headerPattern>/^total|(.?^am(ou)?nt)/i</headerPattern>
<dataPattern>/^\d+(\.\d{2})?$/</dataPattern>
- <comment>quantity X civicrm_product.cost.</comment>
- <add>1.3</add>
+ <comment>quantity X civicrm_product.cost.</comment>
+ <add>1.3</add>
<drop>4.1</drop>
</field>
- <field>
- <name>fulfilled_date</name>
+ <field>
+ <name>fulfilled_date</name>
<type>date</type>
<export>true</export>
- <comment>Optional. Can be used to record the date this product was fulfilled or shipped.</comment>
- <add>1.4</add>
- </field>
- <field>
- <name>start_date</name>
+ <comment>Optional. Can be used to record the date this product was fulfilled or shipped.</comment>
+ <add>1.4</add>
+ </field>
+ <field>
+ <name>start_date</name>
<uniqueName>contribution_start_date</uniqueName>
- <type>date</type>
+ <type>date</type>
<export>true</export>
- <comment>Actual start date for a time-delimited premium (subscription, service or membership)</comment>
- <add>1.4</add>
+ <comment>Actual start date for a time-delimited premium (subscription, service or membership)</comment>
+ <add>1.4</add>
</field>
- <field>
- <name>end_date</name>
+ <field>
+ <name>end_date</name>
<uniqueName>contribution_end_date</uniqueName>
<type>date</type>
<export>true</export>
- <comment>Actual end date for a time-delimited premium (subscription, service or membership)</comment>
- <add>1.4</add>
+ <comment>Actual end date for a time-delimited premium (subscription, service or membership)</comment>
+ <add>1.4</add>
</field>
- <field>
- <name>comment</name>
- <type>text</type>
- <add>1.4</add>
+ <field>
+ <name>comment</name>
+ <type>text</type>
+ <add>1.4</add>
</field>
- <field>
- <name>financial_type_id</name>
+ <field>
+ <name>financial_type_id</name>
<title>Financial Type</title>
- <type>int unsigned</type>
+ <type>int unsigned</type>
<default>NULL</default>
<comment>FK to Financial Type(for membership price sets only).</comment>
- <add>4.3</add>
- </field>
- <foreignKey>
- <name>financial_type_id</name>
- <table>civicrm_financial_type</table>
- <key>id</key>
+ <add>4.3</add>
+ </field>
+ <foreignKey>
+ <name>financial_type_id</name>
+ <table>civicrm_financial_type</table>
+ <key>id</key>
<onDelete>SET NULL</onDelete>
<add>4.3</add>
- </foreignKey>
+ </foreignKey>
</table>