CRM-16259 - Schema change for financial_trxn table only - add is_payment column.
authorDave Greenberg <dave@civicrm.org>
Wed, 2 Dec 2015 23:53:16 +0000 (15:53 -0800)
committerDave Greenberg <dave@civicrm.org>
Wed, 2 Dec 2015 23:53:16 +0000 (15:53 -0800)
----------------------------------------
* CRM-16259: Create Payment API
  https://issues.civicrm.org/jira/browse/CRM-16259

CRM/Upgrade/Incremental/sql/4.7.beta1.mysql.tpl
xml/schema/Financial/FinancialTrxn.xml

index fe2771c34611bbdca6bc6316a5501ce2e734926a..7aaae09768aa6c37bab8b20a99a23c36af1a9a95 100644 (file)
@@ -37,3 +37,6 @@ INSERT INTO civicrm_participant_status_type(name, {localize field='label'}label{
 VALUES ('Transferred', {localize}'{ts escape="sql"}Transferred{/ts}'{/localize}, 'Negative', 1, 1, 0, 16, 2);
 
 {include file='../CRM/Upgrade/4.7.beta1.msg_template/civicrm_msg_template.tpl'}
+
+-- CRM-16259 Added is_payment flag
+ALTER TABLE civicrm_financial_trxn ADD COLUMN is_payment tinyint(4) DEFAULT '0' COMMENT 'Is this entry either a payment or a reversal of a payment?';
index 03fbf024d7430e3af4fe8272676fb6f6ba2d35eb..a681beec670e97a4618ded52c54de736101dc558 100755 (executable)
       <type>Select</type>
     </html>
   </field>
+  <field>
+    <name>is_payment</name>
+    <title>Is Payment?</title>
+    <type>boolean</type>
+    <default>0</default>
+    <import>true</import>
+    <comment>Is this entry either a payment or a reversal of a payment?</comment>
+    <add>4.7</add>
+  </field>
   <field>
     <name>payment_processor</name>
     <type>varchar</type>