Skip to content
Snippets Groups Projects
Commit 948e62a4 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

CRM-13096, drop unwanted table civicrm_official_receipt

----------------------------------------
* CRM-13096: Table civicrm_official_receipt missing from upgrades
  http://issues.civicrm.org/jira/browse/CRM-13096
parent 9a03c6a7
No related branches found
No related tags found
No related merge requests found
......@@ -42,3 +42,6 @@ SET cft.from_financial_account_id = NULL
WHERE ceft.entity_table = 'civicrm_contribution' AND cc.contribution_recur_id IS NOT NULL
AND ceft1.entity_table = 'civicrm_financial_item' AND cft.id IS NOT NULL AND cft.payment_instrument_id = 1 AND cfi.entity_table = 'civicrm_line_item' AND cft.from_financial_account_id IS NOT NULL
AND cefa.entity_table = 'civicrm_payment_processor' AND cefa.financial_account_id = cft.to_financial_account_id;
-- CRM-13096
DROP TABLE IF EXISTS civicrm_official_receipt;
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -257,8 +257,6 @@
<civicrm_financial_trxn />
<civicrm_official_receipt />
<civicrm_membership />
<civicrm_membership_log />
......
<?xml version="1.0" encoding="iso-8859-1" ?>
<table>
<base>CRM/Financial</base>
<class>OfficialReceipt</class>
<name>civicrm_official_receipt</name>
<add>4.1</add>
<log>true</log>
<field>
<name>id</name>
<type>int unsigned</type>
<required>true</required>
<comment>Receipt ID</comment>
<add>4.1</add>
</field>
<primaryKey>
<name>id</name>
<autoincrement>true</autoincrement>
</primaryKey>
<field>
<name>contact_id</name>
<uniqueName>receipt_contact_id</uniqueName>
<title>Contact ID</title>
<type>int unsigned</type>
<required>true</required>
<import>true</import>
<headerPattern>/contact(.?id)?/i</headerPattern>
<dataPattern>/^\d+$/</dataPattern>
<comment>FK to Contact ID</comment>
<add>4.1</add>
</field>
<foreignKey>
<name>contact_id</name>
<table>civicrm_contact</table>
<key>id</key>
<add>4.1</add>
</foreignKey>
<field>
<name>contact_snapshot</name>
<type>text</type>
<htmlType>textarea</htmlType>
<rows>4</rows>
<cols>80</cols>
<comment>Serialized array of contact info of payor at time receipt is created</comment>
<add>4.1</add>
<writeOnce>true</writeOnce>
</field>
<field>
<name>issued_date</name>
<type>datetime</type>
<required>true</required>
<add>4.1</add>
</field>
<index>
<name>UI_issued_date</name>
<fieldName>issued_date</fieldName>
<add>4.1</add>
</index>
<field>
<name>start_date</name>
<type>datetime</type>
<required>true</required>
<add>4.1</add>
</field>
<index>
<name>UI_start_date</name>
<fieldName>start_date</fieldName>
<add>4.1</add>
</index>
<field>
<name>end_date</name>
<type>datetime</type>
<required>true</required>
<add>4.1</add>
</field>
<index>
<name>UI_end_date</name>
<fieldName>end_date</fieldName>
<add>4.1</add>
</index>
<field>
<name>receipt_status_id</name>
<type>int unsigned</type>
<required>true</required>
<add>4.1</add>
<comment>pseudo FK to civicrm_option_value</comment>
</field>
<index>
<name>UI_receipt_status_id</name>
<fieldName>receipt_status_id</fieldName>
<add>4.1</add>
</index>
<field>
<name>receipt_type_id</name>
<type>int unsigned</type>
<required>true</required>
<add>4.1</add>
<comment>pseudo FK to civicrm_option_value</comment>
</field>
<index>
<name>UI_receipt_type_id</name>
<fieldName>receipt_type_id</fieldName>
<add>4.1</add>
</index>
<field>
<name>total_amount</name>
<type>decimal</type>
<required>true</required>
<comment>Total amount for this receipt.</comment>
<add>4.1</add>
</field>
<field>
<name>non_deductible_amount</name>
<type>decimal</type>
<comment>Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.</comment>
<add>4.1</add>
</field>
<field>
<name>currency</name>
<type>varchar</type>
<length>3</length>
<default>NULL</default>
<import>true</import>
<headerPattern>/cur(rency)?/i</headerPattern>
<dataPattern>/^[A-Z]{3}$/</dataPattern>
<comment>3 character string, value from config setting or input via user.</comment>
<add>4.1</add>
</field>
<field>
<name>msg_template_id</name>
<type>int unsigned</type>
<comment>template used to generate receipt</comment>
<add>4.1</add>
</field>
<foreignKey>
<name>msg_template_id</name>
<table>civicrm_msg_template</table>
<key>id</key>
<add>4.1</add>
<onDelete>Set Null</onDelete>
</foreignKey>
</table>
......@@ -7,7 +7,6 @@
<xi:include href="FinancialTrxn.xml" parse="xml" />
<xi:include href="PaymentProcessor.xml" parse="xml" />
<xi:include href="PaymentProcessorType.xml" parse="xml" />
<xi:include href="Receipt.xml" parse="xml" />
<xi:include href="FinancialType.xml" parse="xml" />
<xi:include href="EntityFinancialAccount.xml" parse="xml" />
<xi:include href="FinancialItem.xml" parse="xml" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment