-
Notifications
You must be signed in to change notification settings - Fork 30
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
Update ETL scripts to support mysql-v8.0 #359
base: openmrs-2.6.x-upgrade
Are you sure you want to change the base?
Update ETL scripts to support mysql-v8.0 #359
Conversation
@@ -69,13 +69,13 @@ | |||
<changeSet id="${project.parent.artifactId}-20171212-1744" author="aojwang"> | |||
<preConditions onFail="MARK_RAN"> | |||
<sqlCheck expectedResult="0"> | |||
SELECT COUNT(*) FROM scheduler_task_config | |||
SELECT COUNT(*) FROM openmrs.scheduler_task_config |
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.
we usually don't do this so that there is flexibility in naming the database. there are people who prefer not to call their openmrs dbs as openmrs.
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.
This is noted. I'll try to find out then why the application was trying to read the table for kenyaemr_etl db instead of production table
@@ -135,7 +135,7 @@ marital_status VARCHAR(50) DEFAULT NULL, | |||
education_level VARCHAR(50) DEFAULT NULL, | |||
kdod_service_number VARCHAR(50) DEFAULT NULL, | |||
cadre VARCHAR(100) DEFAULT NULL, | |||
rank VARCHAR(100) DEFAULT NULL, | |||
kdod_rank VARCHAR(100) DEFAULT NULL, |
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.
is this a migration issue? Has the change cascaded in the reports?
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.
btw, is rank a reserved name in mysql 8?
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.
Yes rank is a reserved word in the new version, that's why I had to rename the column. And yes I will cascade these changes to the reports as well
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.
great
e597b98
to
c3651c7
Compare
91631ee
to
d087825
Compare
No description provided.