FINERACT-2407: add precheck

This commit is contained in:
Akshat Soni
2025-11-17 12:56:01 +01:00
committed by Arnold Gálovics
parent ce813d877c
commit 9a16a26d5f
@@ -23,6 +23,11 @@
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.3.xsd">
<changeSet id="1" author="fineract">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT COUNT(1) FROM m_permission WHERE code = 'READ_FAMILYMEMBERS'
</sqlCheck>
</preConditions>
<insert tableName="m_permission">
<column name="grouping" value="portfolio"/>
<column name="code" value="READ_FAMILYMEMBERS"/>