From f21505025bfed5e7b6ac94e0c9440d027f327cf9 Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Mon, 28 Aug 2017 11:21:16 -0400 Subject: [PATCH] LP#1698206: Stamping upgrade script for copy_vis_attr_cache Signed-off-by: Kathy Lussier --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- ...hema.copy_vis_attr_cache.sql => 1057.schema.copy_vis_attr_cache.sql} | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.schema.copy_vis_attr_cache.sql => 1057.schema.copy_vis_attr_cache.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 9cc66db69d..51fe915fbf 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -90,7 +90,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 ('1056', :eg_version); -- miker/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1057', :eg_version); -- miker/gmcharlt/kmlussier CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.copy_vis_attr_cache.sql b/Open-ILS/src/sql/Pg/upgrade/1057.schema.copy_vis_attr_cache.sql similarity index 99% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.copy_vis_attr_cache.sql rename to Open-ILS/src/sql/Pg/upgrade/1057.schema.copy_vis_attr_cache.sql index a6d6065b33..a2497b8aa8 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.copy_vis_attr_cache.sql +++ b/Open-ILS/src/sql/Pg/upgrade/1057.schema.copy_vis_attr_cache.sql @@ -1,5 +1,7 @@ BEGIN; +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1057', :eg_version); -- miker/gmcharlt/kmlussier + -- Thist change drops a needless join and saves 10-15% in time cost CREATE OR REPLACE FUNCTION search.facets_for_record_set(ignore_facet_classes text[], hits bigint[]) RETURNS TABLE(id integer, value text, count bigint) AS $f$ -- 2.11.0