From 493f63cd84efc5afb1860e9cce287981d48dece9 Mon Sep 17 00:00:00 2001 From: Anusha Sunkada Date: Wed, 13 Sep 2023 12:31:09 +0530 Subject: [PATCH] MOSIP-29394 Signed-off-by: Anusha Sunkada --- .../mosip_master/sql/1.1.5.5_to_1.2.0.1-B1_upgrade.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/db_upgrade_scripts/mosip_master/sql/1.1.5.5_to_1.2.0.1-B1_upgrade.sql b/db_upgrade_scripts/mosip_master/sql/1.1.5.5_to_1.2.0.1-B1_upgrade.sql index de173fbc232..cdafcb3c22b 100644 --- a/db_upgrade_scripts/mosip_master/sql/1.1.5.5_to_1.2.0.1-B1_upgrade.sql +++ b/db_upgrade_scripts/mosip_master/sql/1.1.5.5_to_1.2.0.1-B1_upgrade.sql @@ -20,7 +20,11 @@ SELECT * INTO master.template_migr_bkp FROM master.template; -- other reg email and sms templates mapped to 10002 is remapped to pre-reg moduleId 10001 -- This cleanup is performed to avoid un-related templates to get synced in reg-client. UPDATE master.template set module_id=(select distinct id from module_detail where name='Pre-Registration'),module_name='Pre-Registration',upd_by='superadmin',upd_dtimes=now() where module_id=(select distinct id from module_detail where name='Registration Client'); -UPDATE master.template set module_id=(select distinct id from module_detail where name='Registration Client'),module_name='Registration Client',upd_by='superadmin',upd_dtimes=now() where template_typ_code in ('reg-dashboard-template', 'reg-preview-template-part','reg-ack-template-part','reg-consent-template','reg-android-ack-template-part','reg-android-preview-template-part'); +UPDATE master.template set module_id=(select distinct id from module_detail where name='Registration Client'),module_name='Registration Client',upd_by='superadmin',upd_dtimes=now() where template_typ_code in ('reg-dashboard-template', 'reg-consent-template'); +UPDATE master.template set module_id=(select distinct id from module_detail where name='Registration Client'),module_name='Registration Client',upd_by='superadmin',upd_dtimes=now() where template_typ_code like 'reg-preview-template-part%'; +UPDATE master.template set module_id=(select distinct id from module_detail where name='Registration Client'),module_name='Registration Client',upd_by='superadmin',upd_dtimes=now() where template_typ_code like 'reg-ack-template-part%'; +UPDATE master.template set module_id=(select distinct id from module_detail where name='Registration Client'),module_name='Registration Client',upd_by='superadmin',upd_dtimes=now() where template_typ_code like 'reg-android-ack-template-part%'; +UPDATE master.template set module_id=(select distinct id from module_detail where name='Registration Client'),module_name='Registration Client',upd_by='superadmin',upd_dtimes=now() where template_typ_code like 'reg-android-preview-template-part%'; --------------------------------------------------------------------------------------------------------------------