From: Dave Greenberg Date: Wed, 2 Dec 2015 23:53:16 +0000 (-0800) Subject: CRM-16259 - Schema change for financial_trxn table only - add is_payment column. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3987f9b4af8e58da6e17c9c39152ded5179894c1;p=civicrm-core.git CRM-16259 - Schema change for financial_trxn table only - add is_payment column. ---------------------------------------- * CRM-16259: Create Payment API https://issues.civicrm.org/jira/browse/CRM-16259 --- diff --git a/CRM/Upgrade/Incremental/sql/4.7.beta1.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.7.beta1.mysql.tpl index fe2771c346..7aaae09768 100644 --- a/CRM/Upgrade/Incremental/sql/4.7.beta1.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.7.beta1.mysql.tpl @@ -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?'; diff --git a/xml/schema/Financial/FinancialTrxn.xml b/xml/schema/Financial/FinancialTrxn.xml index 03fbf024d7..a681beec67 100755 --- a/xml/schema/Financial/FinancialTrxn.xml +++ b/xml/schema/Financial/FinancialTrxn.xml @@ -147,6 +147,15 @@ Select + + is_payment + Is Payment? + boolean + 0 + true + Is this entry either a payment or a reversal of a payment? + 4.7 + payment_processor varchar