Stamping upgrade script
authorJane Sandberg <sandbej@linnbenton.edu>
Tue, 16 Mar 2021 20:19:09 +0000 (13:19 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Tue, 16 Mar 2021 20:19:09 +0000 (13:19 -0700)
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1258.data.publisher-264.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.publisher-264.sql [deleted file]

index 3c8ddac..7939630 100644 (file)
@@ -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 (file)
index 0000000..1607c13
--- /dev/null
@@ -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 (file)
index 1607c13..0000000
+++ /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;