Skip to content

Commit a322ca9

Browse files
author
Maimoona Kausar
committed
MK: Changed feed publish url property, added preconditions to make sure changeset doesnot fail or crash
2 parents 8b8084e + 306a9fb commit a322ca9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

openmrs-atomfeed-api/src/main/resources/liquibase.xml

+7-2
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,23 @@
5858
<changeSet author="maimoonak" id="opensrp-atomfeed-20160719-4">
5959
<preConditions onFail="MARK_RAN">
6060
<sqlCheck expectedResult="0">
61-
SELECT COUNT(*) FROM global_property where property = 'encounter.feed.publish.url'
61+
SELECT COUNT(*) FROM global_property where property = 'atomfeed.encounter.feed.publish.url'
6262
</sqlCheck>
6363
</preConditions>
6464
<comment>Adding global property for encounter feed publish url</comment>
6565
<insert tableName="global_property">
66-
<column name="property" value="encounter.feed.publish.url"/>
66+
<column name="property" value="atomfeed.encounter.feed.publish.url"/>
6767
<column name="property_value" value="/openmrs/ws/rest/v1/encounter/%s?v=FULL"/>
6868
<column name="uuid" valueComputed="UUID()"/>
6969
<column name="description" value="Url to be published on encounter save."/>
7070
</insert>
7171
</changeSet>
7272
<changeSet id="opensrp-atomfeed-20160719-5" author="Hemanth">
73+
<preConditions onFail="MARK_RAN">
74+
<not>
75+
<tableExists tableName="event_records_queue"/>
76+
</not>
77+
</preConditions>
7378
<createTable tableName="event_records_queue">
7479
<column name="id" type="int" autoIncrement="true">
7580
<constraints nullable="false" primaryKey="true"/>

0 commit comments

Comments
 (0)