Skip to content

Commit

Permalink
Merge pull request #895 from mosip/ase-101-patch-1
Browse files Browse the repository at this point in the history
MOSIP-29394
  • Loading branch information
vishwa-vyom authored Sep 13, 2023
2 parents 421dfa3 + 493f63c commit fdfaeca
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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%';

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

Expand Down

0 comments on commit fdfaeca

Please sign in to comment.