From d0dacd71c7392c9ed6661ef303f6d1c2d4d96a24 Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Wed, 17 Jan 2018 13:17:02 -0500 Subject: [PATCH] LP#1743639: Stamping upgrade script for copy location group visibility Signed-off-by: Kathy Lussier --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- ..._group_visible.sql => 1086.function.copy_location_group_visible.sql} | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.function.copy_location_group_visible.sql => 1086.function.copy_location_group_visible.sql} (86%) diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index d47b2b45b0..650c5ec461 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 ('1085', :eg_version); -- miker/kmlussier +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1086', :eg_version); -- miker/kmlussier CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.function.copy_location_group_visible.sql b/Open-ILS/src/sql/Pg/upgrade/1086.function.copy_location_group_visible.sql similarity index 86% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.function.copy_location_group_visible.sql rename to Open-ILS/src/sql/Pg/upgrade/1086.function.copy_location_group_visible.sql index ca49b549f1..eac6591320 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.function.copy_location_group_visible.sql +++ b/Open-ILS/src/sql/Pg/upgrade/1086.function.copy_location_group_visible.sql @@ -1,5 +1,7 @@ BEGIN; +SELECT evergreen.upgrade_deps_block_check('1086', :eg_version); + CREATE OR REPLACE FUNCTION asset.location_group_default () RETURNS TEXT AS $f$ SELECT '!()'::TEXT; -- For now, as there's no way to cause a location group to hide all copies. /* -- 2.11.0