Skip to content

Commit 6d456f0

Browse files
FINERACT-2423: Fix Liquibase changelog issues
1. Fixed 0071_1_fix_invalid_filename_for_0072.xml: - Changed <sql> to <update> syntax for Windows compatibility 2. Fixed 0072_add_result_and_status_to_command_source.xml: - Added validCheckSum tags to all 3 changeSets - Fixed indentation consistency for the 3rd validCheckSum 3. changelog-tenant.xml already includes the fix file (line 94)
1 parent 3cd23b2 commit 6d456f0

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

fineract-provider/src/main/resources/db/changelog/tenant/parts/0071_1_fix_invalid_filename_for_0072.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@
3535
Fix invalid space in Liquibase changelog filename for Windows compatibility
3636
</comment>
3737

38-
<sql>
39-
UPDATE databasechangelog
40-
SET filename = 'db/changelog/tenant/parts/0072_add_result_and_status_to_command_source.xml',
41-
md5sum = NULL
42-
WHERE filename = 'db/changelog/tenant/parts/0072_add_result_and status_to_command_source.xml';
43-
</sql>
38+
<update tableName="DATABASECHANGELOG">
39+
<column name="filename" value="db/changelog/tenant/parts/0072_add_result_and_status_to_command_source.xml"/>
40+
<column name="md5sum" />
41+
<where>filename = 'db/changelog/tenant/parts/0072_add_result_and status_to_command_source.xml'</where>
42+
</update>
4443

4544
</changeSet>
4645

fineract-provider/src/main/resources/db/changelog/tenant/parts/0072_add_result_and_status_to_command_source.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@
2424
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">
2525

2626
<changeSet id="1" author="fineract" context="postgresql">
27+
<validCheckSum>9:b1a2065c6c2f9fba5035e700435a80ab</validCheckSum>
2728
<renameColumn newColumnName="status"
2829
oldColumnName="processing_result_enum"
2930
tableName="m_portfolio_command_source"/>
3031
</changeSet>
3132

3233
<changeSet id="2" author="fineract" context="mysql">
34+
<validCheckSum>9:9c4456b507915a0ee7a16edca4cddb46</validCheckSum>
3335
<renameColumn newColumnName="status"
3436
oldColumnName="processing_result_enum"
3537
tableName="m_portfolio_command_source"
3638
columnDataType="smallint(6)" />
3739
</changeSet>
3840

3941
<changeSet id="3" author="fineract">
42+
<validCheckSum>9:b5a7d85155d23aadde3403c2d0a8c75d</validCheckSum>
4043
<addColumn tableName="m_portfolio_command_source">
4144
<column name="result" type="TEXT"/>
4245
</addColumn>

0 commit comments

Comments
 (0)