From 3229165f64ca641ef24ea50e260d94c8fd1d9e94 Mon Sep 17 00:00:00 2001 From: Wikum Weerakutti Date: Wed, 2 Oct 2024 12:46:37 +0530 Subject: [PATCH] PLAT-82: Add PostgreSQL support --- api/src/main/resources/liquibase.xml | 41 ++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/api/src/main/resources/liquibase.xml b/api/src/main/resources/liquibase.xml index e56fdf8..4968a66 100644 --- a/api/src/main/resources/liquibase.xml +++ b/api/src/main/resources/liquibase.xml @@ -314,19 +314,24 @@ + 8:6614a6aa5f2fd2e14304b48bff8c4b6d - SELECT COUNT(*) FROM scheduler_task_config WHERE name = "Auto close queue entries Task"; + SELECT COUNT(*) FROM scheduler_task_config WHERE name = 'Auto close queue entries Task'; - - INSERT INTO - scheduler_task_config(name, description, schedulable_class, start_time, start_time_pattern, repeat_interval, - start_on_startup, created_by, date_created, uuid) - VALUES - ('Auto close queue entries Task', 'Auto close queue entries Task', 'org.openmrs.module.queue.tasks.AutoCloseQueueEntryTask', - TIMESTAMP(CURDATE()), 'MM/dd/yyyy HH:mm:ss', 86400, TRUE, 1, NOW(), UUID()); - + + + + + + + + + + + + @@ -377,7 +382,7 @@ - SELECT COUNT(*) FROM scheduler_task_config WHERE name = "Auto close queue entries Task"; + SELECT COUNT(*) FROM scheduler_task_config WHERE name = 'Auto close queue entries Task'; @@ -400,7 +405,7 @@ - + @@ -411,6 +416,20 @@ + + + + + + UPDATE queue_entry qe + SET visit_id = ( + SELECT vqe.visit_id + FROM visit_queue_entries vqe + WHERE qe.queue_entry_id = vqe.queue_entry_id + ); + + +