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

Fix Liquibase errors with Platform 2.7.0 #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wikumChamith
Copy link

@wikumChamith wikumChamith commented Dec 19, 2024

We have updated the Liquibase version of OpenMRS core to 4.28.0 on Platform 2.7.0. This update has caused the following issue with openmrs-module-appointments

org.openmrs.module.ModuleException: Unable to update data model using liquibase.xml. Module: Bahmni Appointment Scheduling
	at org.openmrs.module.ModuleFactory.runLiquibase(ModuleFactory.java:992) ~[openmrs-api-2.7.0.jar:?]
	at org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:715) ~[openmrs-api-2.7.0.jar:?]
	at org.openmrs.api.context.Daemon.lambda$startModule$0(Daemon.java:84) ~[openmrs-api-2.7.0.jar:?]
	at org.openmrs.api.context.Daemon.lambda$runInDaemonThreadInternal$4(Daemon.java:428) ~[openmrs-api-2.7.0.jar:?]
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.base/java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: liquibase.exception.LiquibaseException: java.lang.RuntimeException: liquibase.exception.UnexpectedLiquibaseException: java.io.FileNotFoundException: The file patientPastAppointments.sql was not found in the configured search path:

To mitigate the error this embedded SQL scripts into the liquibase.xml . We have done similar on openmrs-module-bedmanagement and openmrs-module-cohort.

@dkayiwa
Copy link

dkayiwa commented Jan 10, 2025

@wikumChamith can you update the pull request description with details of why you are doing this?

@wikumChamith
Copy link
Author

@dkayiwa I updated the PR description.

@dkayiwa
Copy link

dkayiwa commented Jan 10, 2025

@angshu do you happen to have any comments on this? 😊

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.

2 participants