From c035a8bc416c7b1af7b5461606a581084e4aa525 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Fri, 2 Sep 2011 12:09:27 -0400 Subject: [PATCH] Stamping upgrade script for LP#837566 Signed-off-by: Mike Rylander --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- ...cords.sql => 0614.schema.cache_visibility_and_peer_records.sql} | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.schema.cache_visibility_and_peer_records.sql => 0614.schema.cache_visibility_and_peer_records.sql} (98%) diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 5283d984f2..c3f2494db6 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 ('0607'); -- miker/jamesrf/tsbere +INSERT INTO config.upgrade_log (version) VALUES ('0614'); -- miker/phasefx CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.cache_visibility_and_peer_records.sql b/Open-ILS/src/sql/Pg/upgrade/0614.schema.cache_visibility_and_peer_records.sql similarity index 98% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.cache_visibility_and_peer_records.sql rename to Open-ILS/src/sql/Pg/upgrade/0614.schema.cache_visibility_and_peer_records.sql index d8e3c8a452..970940acf1 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.cache_visibility_and_peer_records.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0614.schema.cache_visibility_and_peer_records.sql @@ -1,3 +1,7 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0614'); --miker/phasefx + CREATE OR REPLACE FUNCTION asset.cache_copy_visibility () RETURNS TRIGGER as $func$ DECLARE add_front TEXT; @@ -205,3 +209,6 @@ BEGIN RETURN NEW; END; $func$ LANGUAGE PLPGSQL; + +COMMIT; + -- 2.11.0