From a3206c00ab89b4798be6d765a0f4612f21355f80 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Mon, 21 Oct 2019 09:44:27 -0400 Subject: [PATCH] LP#1657171 - Adding upgrade script Signed-off-by: Chris Sharp --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- ...xxx.schema.normalize_quotes.sql => 1194.schema.normalize_quotes.sql} | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) rename Open-ILS/src/sql/Pg/upgrade/{xxxx.schema.normalize_quotes.sql => 1194.schema.normalize_quotes.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 8f4ac68886..21c5799518 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 ('1193', :eg_version); -- remington/mmorgan/jpringle/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1194', :eg_version); -- mmorgan/rhamby CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.normalize_quotes.sql b/Open-ILS/src/sql/Pg/upgrade/1194.schema.normalize_quotes.sql similarity index 98% rename from Open-ILS/src/sql/Pg/upgrade/xxxx.schema.normalize_quotes.sql rename to Open-ILS/src/sql/Pg/upgrade/1194.schema.normalize_quotes.sql index 6b52a86255..dafc27be8a 100644 --- a/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.normalize_quotes.sql +++ b/Open-ILS/src/sql/Pg/upgrade/1194.schema.normalize_quotes.sql @@ -1,5 +1,7 @@ BEGIN; +SELECT evergreen.upgrade_deps_block_check('1194', :eg_version); + CREATE OR REPLACE FUNCTION public.naco_normalize( TEXT, TEXT ) RETURNS TEXT AS $func$ use strict; -- 2.11.0