Skip to content

Commit 9a16a26

Browse files
Akshat Sonigalovics
authored andcommitted
FINERACT-2407: add precheck
1 parent ce813d8 commit 9a16a26

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fineract-provider/src/main/resources/db/changelog/tenant/parts/0205_add_read_familymembers_permission.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2424
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd">
2525
<changeSet id="1" author="fineract">
26+
<preConditions onFail="MARK_RAN">
27+
<sqlCheck expectedResult="0">
28+
SELECT COUNT(1) FROM m_permission WHERE code = 'READ_FAMILYMEMBERS'
29+
</sqlCheck>
30+
</preConditions>
2631
<insert tableName="m_permission">
2732
<column name="grouping" value="portfolio"/>
2833
<column name="code" value="READ_FAMILYMEMBERS"/>

0 commit comments

Comments
 (0)