This is an automated email from the ASF dual-hosted git repository.

adamsaghy pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git

commit ea1609120f79dedb75d90f44afc328ee6cff6a97
Author: Monica <[email protected]>
AuthorDate: Thu Jan 15 15:24:55 2026 +0530

    FINERACT-2423: Add preconditions to all changesets
---
 ...072_add_result_and_status_to_command_source.xml | 66 +++++++++++++---------
 1 file changed, 40 insertions(+), 26 deletions(-)

diff --git 
a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0072_add_result_and_status_to_command_source.xml
 
b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0072_add_result_and_status_to_command_source.xml
index f2df19d7e0..3634527dff 100644
--- 
a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0072_add_result_and_status_to_command_source.xml
+++ 
b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0072_add_result_and_status_to_command_source.xml
@@ -21,35 +21,49 @@
 -->
 <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";>
+                   xsi:schemaLocation="
+  http://www.liquibase.org/xml/ns/dbchangelog
+  http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd";>
 
-    <changeSet id="1" author="fineract" context="postgresql">
-        <validCheckSum>9:b1a20656c2f9b4a5035e700453a80ab</validCheckSum>
+   <changeSet id="1" author="fineract" context="postgresql">
+    <preConditions onFail="MARK_RAN">
+        <columnExists
+            tableName="m_portfolio_command_source"
+            columnName="processing_result_enum"/>
+    </preConditions>
 
-        <preConditions onFail="MARK_RAN">
-        <columnExists tableName="m_portfolio_command_source"
-                      columnName="processing_result_enum"/>
-        </preConditions>
+    <renameColumn
+        tableName="m_portfolio_command_source"
+        oldColumnName="processing_result_enum"
+        newColumnName="status"/>
+   </changeSet>
 
-        <renameColumn
+   <changeSet id="2" author="fineract" context="mysql">
+    <preConditions onFail="MARK_RAN">
+        <columnExists
             tableName="m_portfolio_command_source"
-            oldColumnName="processing_result_enum"
-            newColumnName="status"/>
-    </changeSet>
-
-    <changeSet id="2" author="fineract" context="mysql">
-        <validCheckSum>9:9c4456b507915a0ee7a16edca4cddb46</validCheckSum>
-        <renameColumn newColumnName="status"
-                      oldColumnName="processing_result_enum"
-                      tableName="m_portfolio_command_source"
-                      columnDataType="smallint(6)" />
-    </changeSet>
-
-    <changeSet id="3" author="fineract">
-    <validCheckSum>9:b5a7d85155d23aadde3403c2d0a8c75d</validCheckSum>
-        <addColumn tableName="m_portfolio_command_source">
-            <column name="result" type="TEXT"/>
-        </addColumn>
-    </changeSet>
+            columnName="processing_result_enum"/>
+    </preConditions>
+
+    <renameColumn
+        tableName="m_portfolio_command_source"
+        oldColumnName="processing_result_enum"
+        newColumnName="status"
+        columnDataType="smallint(6)"/>
+   </changeSet>
+
+   <changeSet id="3" author="fineract" context="postgresql,mysql">
+    <preConditions onFail="MARK_RAN">
+        <not>
+            <columnExists
+                tableName="m_portfolio_command_source"
+                columnName="result"/>
+        </not>
+    </preConditions>
+
+    <addColumn tableName="m_portfolio_command_source">
+        <column name="result" type="TEXT"/>
+    </addColumn>
+   </changeSet>
 
 </databaseChangeLog>

Reply via email to