From 32b0358678f4eb45a1c40f7f39ca7c9a9871326a Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 20 Feb 2018 10:09:33 -0500 Subject: [PATCH] Lp 1746584: Stamping Upgrade Script Signed-off-by: Jason Stephenson --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- ...wse_visibility_test.sql => 1088.function.browse_visibility_test.sql} | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.function.browse_visibility_test.sql => 1088.function.browse_visibility_test.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 6dbde67221..04bc915343 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -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 ('1087', :eg_version); -- miker/kmlussier +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1088', :eg_version); -- miker/dyrcona CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.function.browse_visibility_test.sql b/Open-ILS/src/sql/Pg/upgrade/1088.function.browse_visibility_test.sql similarity index 99% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.function.browse_visibility_test.sql rename to Open-ILS/src/sql/Pg/upgrade/1088.function.browse_visibility_test.sql index 32bdd9ef08..c511c8cdfc 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.function.browse_visibility_test.sql +++ b/Open-ILS/src/sql/Pg/upgrade/1088.function.browse_visibility_test.sql @@ -1,5 +1,7 @@ BEGIN; +SELECT evergreen.upgrade_deps_block_check('1088', :eg_version); + CREATE OR REPLACE FUNCTION metabib.staged_browse(query text, fields integer[], context_org integer, context_locations integer[], staff boolean, browse_superpage_size integer, count_up_from_zero boolean, result_limit integer, next_pivot_pos integer) RETURNS SETOF metabib.flat_browse_entry_appearance AS $f$ -- 2.11.0