From: Jane Sandberg Date: Tue, 16 Mar 2021 20:19:09 +0000 (-0700) Subject: Stamping upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3cfeeb87cbce69dc1fccb6d8069677df1adfbfa1;p=evergreen%2Fpines.git Stamping upgrade script Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 3c8ddacd63..7939630474 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -92,7 +92,7 @@ CREATE TRIGGER no_overlapping_deps BEFORE INSERT OR UPDATE ON config.db_patch_dependencies FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates'); -INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1257', :eg_version); -- Bmagic/JBoyer/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1258', :eg_version); -- berick/gcollum/sandbergja CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1258.data.publisher-264.sql b/Open-ILS/src/sql/Pg/upgrade/1258.data.publisher-264.sql new file mode 100644 index 0000000000..1607c1325d --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1258.data.publisher-264.sql @@ -0,0 +1,9 @@ +BEGIN; + +-- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version); + +UPDATE config.metabib_field +SET xpath = '//*[@tag=''260'' or @tag=''264''][1]' +WHERE id = 52 AND xpath = '//*[@tag=''260'']'; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.publisher-264.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.publisher-264.sql deleted file mode 100644 index 1607c1325d..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.publisher-264.sql +++ /dev/null @@ -1,9 +0,0 @@ -BEGIN; - --- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version); - -UPDATE config.metabib_field -SET xpath = '//*[@tag=''260'' or @tag=''264''][1]' -WHERE id = 52 AND xpath = '//*[@tag=''260'']'; - -COMMIT;