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
Conversation
<column name="creator">1</column> | ||
<column name="date_created">CURRENT_TIMESTAMP</column> | ||
<column name="retired">false</column> | ||
<column name="uuid"></column> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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()
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
@@ -7128,4 +7128,29 @@ | |||
referencedTableName="users" | |||
referencedColumnNames="user_id"/> | |||
</changeSet> | |||
|
|||
<changeSet id="201403070131-TRUNK-4286" author="andras-szell"> | |||
<preConditions> |
There was a problem hiding this comment.
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
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