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

Update ETL scripts to support mysql-v8.0 #359

Open
wants to merge 4 commits into
base: openmrs-2.6.x-upgrade
Choose a base branch
from

Conversation

jecihjoy
Copy link
Contributor

No description provided.

@@ -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
Copy link
Contributor

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.

Copy link
Contributor Author

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,
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

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

great

@jecihjoy jecihjoy force-pushed the mysql-v8.0-upgrade branch from e597b98 to c3651c7 Compare June 22, 2023 07:53
@makombe makombe force-pushed the openmrs-2.6.x-upgrade branch from 91631ee to d087825 Compare November 7, 2023 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants