Skip to content

Commit

Permalink
Merge pull request #896 from HimajaDhanyamraju2/release-1.2.0.1_bugfix
Browse files Browse the repository at this point in the history
MOSIP-29394: Modified upd_dtimes to update to utc zone
  • Loading branch information
vishwa-vyom authored Sep 18, 2023
2 parents fdfaeca + a2b3343 commit 40cc848
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ SELECT * INTO master.template_migr_bkp FROM master.template;
-- cleanup to map only registration-client related templates with 10002 moduleId and
-- 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-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%';
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() at time zone('utc')) 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() at time zone('utc')) 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() at time zone('utc')) 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() at time zone('utc')) 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() at time zone('utc')) 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() at time zone('utc')) where template_typ_code like 'reg-android-preview-template-part%';

--------------------------------------------------------------------------------------------------------------------

Expand Down

0 comments on commit 40cc848

Please sign in to comment.