( 1101, 'ADMIN_STUDENT_CARDS', oils_i18n_gettext(1101,
'Modify student card settings', 'ppl', 'description'));
+
+-- apply holdings template updates
+DO $SQL$
+BEGIN
+
+ PERFORM TRUE FROM config.usr_setting_type WHERE name = 'cat.copy.templates';
+
+ IF NOT FOUND THEN -- no matching user setting
+
+ PERFORM TRUE FROM config.workstation_setting_type WHERE name = 'cat.copy.templates';
+
+ IF NOT FOUND THEN
+ -- no matching workstation setting
+ -- Migrate the existing user setting and its data to the new name.
+
+ UPDATE config.usr_setting_type
+ SET name = 'cat.copy.templates'
+ WHERE name = 'webstaff.cat.copy.templates';
+
+ UPDATE actor.usr_setting
+ SET name = 'cat.copy.templates'
+ WHERE name = 'webstaff.cat.copy.templates';
+
+ END IF;
+ END IF;
+
+END;
+$SQL$;
commit;