Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRUNK-4292: Insert order types for drug and test orders #743

Closed
wants to merge 2 commits into from
Closed

TRUNK-4292: Insert order types for drug and test orders #743

wants to merge 2 commits into from

Conversation

coldcue
Copy link
Contributor

@coldcue coldcue commented Mar 7, 2014

Insert order types for test and drug orders, these should be inserted conditionally, i.e must check that there are no entries in the order_type table with their java_class column set to org.openmrs.DrugOrder or org.openmrs.TestOrder

NOT READY TO MERGE, ONLY FOR CODE REVIEW

<column name="creator">1</column>
<column name="date_created">CURRENT_TIMESTAMP</column>
<column name="retired">false</column>
<column name="uuid"></column>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can I generate an UUID?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In mysql you can generate one by executing select uuid()

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be explicit, though, you want to generate one of these manually one time, and then hardcode it here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is correct Darius, my previous comment i only meant to say how to pre generate a uuid

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to insert one for test_order

@wluyima wluyima closed this Mar 10, 2014
@@ -7128,4 +7128,29 @@
referencedTableName="users"
referencedColumnNames="user_id"/>
</changeSet>

<changeSet id="201403070131-TRUNK-4286" author="andras-szell">
<preConditions>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1- onFail action is missing
2- These need to be 2 separate changesets each inserting a single row
3- column name in where clause should be java_class_name and not java_class

I have addressed all the above issues at eee9f95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants