From f015e53f90ec0ab52c5d66fac24ad34d592922ee Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 16 Nov 2011 12:07:54 -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 +- ...XXXX.temp.sql => 0650.function.copy_visibility_vs_peer_bibs.sql} | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.temp.sql => 0650.function.copy_visibility_vs_peer_bibs.sql} (99%) diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 3467bb516e..37b6713353 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 ('0649'); -- dbwells/tsbere/miker +INSERT INTO config.upgrade_log (version) VALUES ('0650'); -- 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 99% 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..2d4a279f49 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,7 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0650'); + CREATE OR REPLACE FUNCTION asset.cache_copy_visibility () RETURNS TRIGGER as $func$ DECLARE add_front TEXT; @@ -205,3 +209,5 @@ BEGIN RETURN NEW; END; $func$ LANGUAGE PLPGSQL; + +COMMIT; -- 2.11.0