You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by ar...@apache.org on 2024/03/14 07:18:27 UTC
(fineract) branch develop updated: FINERACT-1971: Conditional renaming: Credited Principal renamed back to credits amount
This is an automated email from the ASF dual-hosted git repository.
arnold pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new 40970e830 FINERACT-1971: Conditional renaming: Credited Principal renamed back to credits amount
40970e830 is described below
commit 40970e830b694da31f2f8a570d59e3a0a59632cb
Author: Adam Saghy <ad...@gmail.com>
AuthorDate: Wed Mar 13 14:10:05 2024 +0100
FINERACT-1971: Conditional renaming: Credited Principal renamed back to credits amount
---
.../loan/parts/1017_add_fee_and_penalty_adjustments_to_loan.xml | 2 +-
.../1018_rename_credited_principal_back_to_credits_amount.xml | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/fineract-loan/src/main/resources/db/changelog/tenant/module/loan/parts/1017_add_fee_and_penalty_adjustments_to_loan.xml b/fineract-loan/src/main/resources/db/changelog/tenant/module/loan/parts/1017_add_fee_and_penalty_adjustments_to_loan.xml
index faa79a4c0..6c110c4e9 100644
--- a/fineract-loan/src/main/resources/db/changelog/tenant/module/loan/parts/1017_add_fee_and_penalty_adjustments_to_loan.xml
+++ b/fineract-loan/src/main/resources/db/changelog/tenant/module/loan/parts/1017_add_fee_and_penalty_adjustments_to_loan.xml
@@ -32,11 +32,11 @@
</changeSet>
<changeSet author="fineract" id="2">
+ <validCheckSum>9:9e13876473fb1fc84046fb672fcf9309</validCheckSum>
<addColumn tableName="m_loan_repayment_schedule">
<column defaultValueComputed="NULL" name="credited_fee" type="DECIMAL(19, 6)"/>
<column defaultValueComputed="NULL" name="credited_penalty" type="DECIMAL(19, 6)"/>
</addColumn>
- <renameColumn tableName="m_loan_repayment_schedule" oldColumnName="credits_amount" newColumnName="credited_principal" columnDataType="DECIMAL(19, 6)"/>
</changeSet>
diff --git a/fineract-loan/src/main/resources/db/changelog/tenant/module/loan/parts/1018_rename_credited_principal_back_to_credits_amount.xml b/fineract-loan/src/main/resources/db/changelog/tenant/module/loan/parts/1018_rename_credited_principal_back_to_credits_amount.xml
index 35e2733c3..129548bba 100644
--- a/fineract-loan/src/main/resources/db/changelog/tenant/module/loan/parts/1018_rename_credited_principal_back_to_credits_amount.xml
+++ b/fineract-loan/src/main/resources/db/changelog/tenant/module/loan/parts/1018_rename_credited_principal_back_to_credits_amount.xml
@@ -20,7 +20,12 @@
-->
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">
- <changeSet author="fineract" id="1">
+ <changeSet author="fineract" id="1" failOnError="false">
+ <preConditions onFail="MARK_RAN" onError="MARK_RAN">
+ <sqlCheck expectedResult="1">SELECT 1
+ FROM information_schema.columns
+ WHERE table_name='m_loan_repayment_schedule' and column_name='credited_principal'</sqlCheck>
+ </preConditions>
<renameColumn tableName="m_loan_repayment_schedule" oldColumnName="credited_principal" newColumnName="credits_amount" columnDataType="DECIMAL(19, 6)"/>
</changeSet>
</databaseChangeLog>