]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0570.schema.fix-authsort.sql
LP#1117808: Stamping upgrade scripts for extend use of merge profiles
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0570.schema.fix-authsort.sql
1 BEGIN;
2
3 SELECT evergreen.upgrade_deps_block_check('0570', :eg_version);
4
5 -- Not everything in 1XX tags should become part of the authorsort field
6 -- ($0 for example).  The list of subfields chosen here is a superset of all
7 -- the fields found in the LoC authority mappin definitions for 1XX fields.
8 -- Anyway, if more fields should be here, add them.
9
10 UPDATE config.record_attr_definition
11     SET sf_list = 'abcdefgklmnopqrstvxyz'
12     WHERE name='authorsort' AND sf_list IS NULL;
13
14 COMMIT;