From 921159054219dab0c39261e200a6c4bc911e7355 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Thu, 23 Sep 2021 12:02:56 -0400 Subject: [PATCH] LP#1864516: stamp DB upgrade script Signed-off-by: Chris Sharp --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- ...ld-match.sql => 1298.schema.case-insensitive-browse-field-match.sql} | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.schema.case-insensitive-browse-field-match.sql => 1298.schema.case-insensitive-browse-field-match.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 7d78804f36..6339ed5ccc 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 ('1297', :eg_version); -- dbriem / gmonti / gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1298', :eg_version); -- miker / ehardy / csharp CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.case-insensitive-browse-field-match.sql b/Open-ILS/src/sql/Pg/upgrade/1298.schema.case-insensitive-browse-field-match.sql similarity index 99% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.case-insensitive-browse-field-match.sql rename to Open-ILS/src/sql/Pg/upgrade/1298.schema.case-insensitive-browse-field-match.sql index de482c3196..5f2aeb4d6c 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.case-insensitive-browse-field-match.sql +++ b/Open-ILS/src/sql/Pg/upgrade/1298.schema.case-insensitive-browse-field-match.sql @@ -1,5 +1,7 @@ BEGIN; +SELECT evergreen.upgrade_deps_block_check('1298', :eg_version); + ALTER TYPE metabib.field_entry_template ADD ATTRIBUTE browse_nocase BOOL CASCADE; ALTER TABLE config.metabib_field ADD COLUMN browse_nocase BOOL NOT NULL DEFAULT FALSE; -- 2.11.0