From f75c8fbf9f41b7539103cd3a2d76bfc6ad03ed5a Mon Sep 17 00:00:00 2001 From: Subhrajit Roy Date: Tue, 2 Aug 2011 16:53:33 +0530 Subject: [PATCH] fixing query to introduce scheduler_task_config --- motech-server-omod/src/main/resources/sqldiff.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/motech-server-omod/src/main/resources/sqldiff.xml b/motech-server-omod/src/main/resources/sqldiff.xml index b4d66751..c29db134 100644 --- a/motech-server-omod/src/main/resources/sqldiff.xml +++ b/motech-server-omod/src/main/resources/sqldiff.xml @@ -3373,9 +3373,9 @@ July 22 2011 Adding configuration data for weekly tasks - insert into scheduler_task_config_property(name,value,task_config_id) values('sendNoDefaulterAndNoUpcomingCareMessage','false',4); - insert into scheduler_task_config_property(name,value,task_config_id) values('sendNoDefaulterAndNoUpcomingCareMessage','true',5); - insert into scheduler_task_config_property(name,value,task_config_id) values('sendNoDefaulterAndNoUpcomingCareMessage','true',6); + insert into scheduler_task_config_property(name,value,task_config_id) values('sendNoDefaulterAndNoUpcomingCareMessage','false',(select task_config_id from scheduler_task_config where name = 'Daily Nurse Care Messaging Task')); + insert into scheduler_task_config_property(name,value,task_config_id) values('sendNoDefaulterAndNoUpcomingCareMessage','true',(select task_config_id from scheduler_task_config where name = 'Weekly Nurse Care Messaging Task')); + insert into scheduler_task_config_property(name,value,task_config_id) values('sendNoDefaulterAndNoUpcomingCareMessage','true',(select task_config_id from scheduler_task_config where name = 'Weekly EDD Nurse Care Messaging Task'));