From 3b4dc8585d5a6f5f4b77f2868f02acfb035f321f Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 16 Nov 2011 12:00:48 -0500 Subject: [PATCH] Stamping upgrade script for copy visibility vs peer-bibs fix Signed-off-by: Mike Rylander --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- ...mp.sql => 0650.function.copy_visibility_vs_peer_bibs.sql} | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.temp.sql => 0650.function.copy_visibility_vs_peer_bibs.sql} (97%) diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 51ab5bc8f9..471cb5a240 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -86,7 +86,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 ('0649', :eg_version); -- dbwells/tsbere/miker +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0650', :eg_version); -- tsbere/miker CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.temp.sql b/Open-ILS/src/sql/Pg/upgrade/0650.function.copy_visibility_vs_peer_bibs.sql similarity index 97% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.temp.sql rename to Open-ILS/src/sql/Pg/upgrade/0650.function.copy_visibility_vs_peer_bibs.sql index 4cd057efe1..0901b29c29 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.temp.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0650.function.copy_visibility_vs_peer_bibs.sql @@ -1,3 +1,12 @@ +-- Evergreen DB patch 0650.function.copy_visibility_vs_peer_bibs.sql +-- +-- +BEGIN; + + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('0650', :eg_version); + CREATE OR REPLACE FUNCTION asset.cache_copy_visibility () RETURNS TRIGGER as $func$ DECLARE add_front TEXT; @@ -205,3 +214,6 @@ BEGIN RETURN NEW; END; $func$ LANGUAGE PLPGSQL; + + +COMMIT; -- 2.11.0