From: Mike Rylander Date: Fri, 18 Aug 2017 20:34:04 +0000 (-0400) Subject: LP#1251394: Minor fixes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4d9df04f07e77f91f7c2d4830ff16b8d67f633e5;p=evergreen%2Ftadl.git LP#1251394: Minor fixes * Fix function names in drop statements for upgrade * Adjust array concat syntax in plpgsql Signed-off-by: Mike Rylander Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/030.schema.metabib.sql b/Open-ILS/src/sql/Pg/030.schema.metabib.sql index eea6a25b93..02406228c5 100644 --- a/Open-ILS/src/sql/Pg/030.schema.metabib.sql +++ b/Open-ILS/src/sql/Pg/030.schema.metabib.sql @@ -914,10 +914,10 @@ BEGIN SELECT COALESCE(NULLIF(skip_browse, FALSE), EXISTS (SELECT enabled FROM config.internal_flag WHERE name = 'ingest.skip_browse_indexing' AND enabled)) INTO b_skip_browse; SELECT COALESCE(NULLIF(skip_search, FALSE), EXISTS (SELECT enabled FROM config.internal_flag WHERE name = 'ingest.skip_search_indexing' AND enabled)) INTO b_skip_search; - IF NOT b_skip_facet THEN field_types := field_types || 'facet'; END IF; - IF NOT b_skip_display THEN field_types := field_types || 'display'; END IF; - IF NOT b_skip_browse THEN field_types := field_types || 'browse'; END IF; - IF NOT b_skip_search THEN field_types := field_types || 'search'; END IF; + IF NOT b_skip_facet THEN field_types := field_types || '{facet}'; END IF; + IF NOT b_skip_display THEN field_types := field_types || '{display}'; END IF; + IF NOT b_skip_browse THEN field_types := field_types || '{browse}'; END IF; + IF NOT b_skip_search THEN field_types := field_types || '{search}'; END IF; PERFORM * FROM config.internal_flag WHERE name = 'ingest.assume_inserts_only' AND enabled; IF NOT FOUND THEN diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.metabib-display-field.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.metabib-display-field.sql index 5493d653fe..1dd3753769 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.metabib-display-field.sql +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.metabib-display-field.sql @@ -151,8 +151,8 @@ CREATE TRIGGER display_field_force_nfc_tgr ALTER TYPE metabib.field_entry_template ADD ATTRIBUTE display_field BOOL; DROP FUNCTION metabib.reingest_metabib_field_entries(BIGINT, BOOL, BOOL, BOOL); -DROP FUNCTION metabib.extract_metabib_field_entries(BIGINT); -DROP FUNCTION metabib.extract_metabib_field_entries(BIGINT, TEXT); +DROP FUNCTION biblio.extract_metabib_field_entry(BIGINT); +DROP FUNCTION biblio.extract_metabib_field_entry(BIGINT, TEXT); CREATE OR REPLACE FUNCTION biblio.extract_metabib_field_entry ( rid BIGINT, @@ -391,10 +391,10 @@ BEGIN SELECT COALESCE(NULLIF(skip_browse, FALSE), EXISTS (SELECT enabled FROM config.internal_flag WHERE name = 'ingest.skip_browse_indexing' AND enabled)) INTO b_skip_browse; SELECT COALESCE(NULLIF(skip_search, FALSE), EXISTS (SELECT enabled FROM config.internal_flag WHERE name = 'ingest.skip_search_indexing' AND enabled)) INTO b_skip_search; - IF NOT b_skip_facet THEN field_types := field_types || 'facet'; END IF; - IF NOT b_skip_display THEN field_types := field_types || 'display'; END IF; - IF NOT b_skip_browse THEN field_types := field_types || 'browse'; END IF; - IF NOT b_skip_search THEN field_types := field_types || 'search'; END IF; + IF NOT b_skip_facet THEN field_types := field_types || '{facet}'; END IF; + IF NOT b_skip_display THEN field_types := field_types || '{display}'; END IF; + IF NOT b_skip_browse THEN field_types := field_types || '{browse}'; END IF; + IF NOT b_skip_search THEN field_types := field_types || '{search}'; END IF; PERFORM * FROM config.internal_flag WHERE name = 'ingest.assume_inserts_only' AND enabled; IF NOT FOUND THEN