From: Mike Rylander Date: Fri, 1 Jul 2011 15:20:44 +0000 (-0400) Subject: Stampping upgrade for authorsort fix from Lebbeous X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b52b0864b45876466ec82dd7ec26fb733e023638;p=working%2FEvergreen.git Stampping upgrade for authorsort fix from Lebbeous Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 840d7df299..cf45060050 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -57,7 +57,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0570'); -- miker +INSERT INTO config.upgrade_log (version) VALUES ('0571'); -- miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0570.schema.fix-authsort.sql b/Open-ILS/src/sql/Pg/upgrade/0570.schema.fix-authsort.sql new file mode 100644 index 0000000000..f9bb3c2371 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0570.schema.fix-authsort.sql @@ -0,0 +1,14 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0570'); + +-- Not everything in 1XX tags should become part of the authorsort field +-- ($0 for example). The list of subfields chosen here is a superset of all +-- the fields found in the LoC authority mappin definitions for 1XX fields. +-- Anyway, if more fields should be here, add them. + +UPDATE config.record_attr_definition + SET sf_list = 'abcdefgklmnopqrstvxyz' + WHERE name='authorsort' AND sf_list IS NULL; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/0yyy.schema.fix-authsort.sql b/Open-ILS/src/sql/Pg/upgrade/0yyy.schema.fix-authsort.sql deleted file mode 100644 index 33a298298f..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/0yyy.schema.fix-authsort.sql +++ /dev/null @@ -1,14 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('0570', :eg_version); - --- Not everything in 1XX tags should become part of the authorsort field --- ($0 for example). The list of subfields chosen here is a superset of all --- the fields found in the LoC authority mappin definitions for 1XX fields. --- Anyway, if more fields should be here, add them. - -UPDATE config.record_attr_definition - SET sf_list = 'abcdefgklmnopqrstvxyz' - WHERE name='authorsort' AND sf_list IS NULL; - -COMMIT;