From f762b75ac430ed70365ebc0385d2c9d0da04ab26 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Mon, 27 Jun 2011 18:47:14 -0400 Subject: [PATCH] Pinning upgrade script for copy visibility speed boost Signed-off-by: Mike Rylander --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- ...boost.sql => 0568.schema.cache_visibility_speed_boost.sql} | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.cache_visibility_speed_boost.sql => 0568.schema.cache_visibility_speed_boost.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 18c39b39e6..c7b404da0a 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 ('0567', :eg_version); -- miker/berick +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0568', :eg_version); -- miker/tsbere CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.cache_visibility_speed_boost.sql b/Open-ILS/src/sql/Pg/upgrade/0568.schema.cache_visibility_speed_boost.sql similarity index 97% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.cache_visibility_speed_boost.sql rename to Open-ILS/src/sql/Pg/upgrade/0568.schema.cache_visibility_speed_boost.sql index 79ea252971..6e10db07b8 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.cache_visibility_speed_boost.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0568.schema.cache_visibility_speed_boost.sql @@ -1,3 +1,11 @@ +-- Evergreen DB patch 0568.schema.cache_visibility_speed_boost.sql +-- +BEGIN; + + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('0568', :eg_version); + CREATE OR REPLACE FUNCTION asset.cache_copy_visibility () RETURNS TRIGGER as $func$ DECLARE add_front TEXT; @@ -205,3 +213,6 @@ BEGIN RETURN NEW; END; $func$ LANGUAGE PLPGSQL; + +COMMIT; + -- 2.11.0