Skip to content

Commit

Permalink
Insert order types for drug and test orders - TRUNK-4292
Browse files Browse the repository at this point in the history
  • Loading branch information
wluyima committed Mar 10, 2014
1 parent babbe52 commit d5d0f1b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions api/src/main/resources/liquibase-update-to-latest.xml
Expand Up @@ -7144,6 +7144,31 @@
referencedColumnNames="user_id"/>
</changeSet>

<changeSet id="201403070131-TRUNK-4286" author="andras-szell">
<preConditions>
<not><sqlCheck expectedResult="0">select count(*) from order_type where java_class like "org.openmrs.DrugOrder" or java_class like "org.openmrs.TestOrder"</sqlCheck></not>
</preConditions>
<comment>Insert order types for test and drug orders after checking that there are no entries in the order_type table with their java_class column set to org.openmrs.DrugOrder or org.openmrs.TestOrder</comment>
<insert tableName="order_type">
<column name="name">Drug order</column>
<column name="description">Drug order</column>
<column name="java_class_name">org.openmrs.DrugOrder</column>
<column name="creator">1</column>
<column name="date_created">CURRENT_TIMESTAMP</column>
<column name="retired">false</column>
<column name="uuid">2ca568f3-a64a-11e3-9aeb-50e549534c5e</column>
</insert>
<insert tableName="order_type">
<column name="name">Test order</column>
<column name="description">Test order</column>
<column name="java_class_name">org.openmrs.TestOrder</column>
<column name="creator">1</column>
<column name="date_created">CURRENT_TIMESTAMP</column>
<column name="retired">false</column>
<column name="uuid">52a447d3-a64a-11e3-9aeb-50e549534c5e</column>
</insert>
</changeSet>

<changeSet author="Banka, Vinay" id="201403061757-TRUNK-4284">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">select count(*) from concept_class where uuid = '8e071bfe-520c-44c0-a89b-538e9129b42a'</sqlCheck>
Expand Down

0 comments on commit d5d0f1b

Please sign in to comment.