]> git.evergreen-ils.org Git - evergreen/masslnc.git/blob - Open-ILS/src/sql/Pg/upgrade/XXXX.data.authority.control_set_authority_field-remove-sf-e.sql
LP# 1484281 auth control config update release notes
[evergreen/masslnc.git] / Open-ILS / src / sql / Pg / upgrade / XXXX.data.authority.control_set_authority_field-remove-sf-e.sql
1 BEGIN;
2
3 INSERT INTO config.upgrade_log (version) VALUES ('XXXX');
4
5 -- TODO: ask community if I should be warnign users that my code only fixes 100 & 110 auth tags for default (id=1) control set
6
7 UPDATE authority.control_set_authority_field SET sf_list = REGEXP_REPLACE( sf_list, 'e', '', 'i') WHERE tag = '100' AND control_set = 1 AND  sf_list ILIKE '%e%';
8
9 UPDATE authority.control_set_authority_field SET sf_list = REGEXP_REPLACE( sf_list, 'e', '', 'i') WHERE tag = '110' AND control_set = 1 AND  sf_list ILIKE '%e%';
10
11 COMMIT;