LP#1931167: stamp DB update
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 12 Aug 2021 15:17:56 +0000 (11:17 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 12 Aug 2021 15:17:56 +0000 (11:17 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1273.data.DYM_max_suggestions.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.DYM_max_suggestions.sql [deleted file]

index 690ff23..95a94a5 100644 (file)
@@ -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 ('1272', :eg_version); -- JBoyer/tmcanna/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1273', :eg_version); -- miker/erohlfs/gmcharlt
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1273.data.DYM_max_suggestions.sql b/Open-ILS/src/sql/Pg/upgrade/1273.data.DYM_max_suggestions.sql
new file mode 100644 (file)
index 0000000..25450c9
--- /dev/null
@@ -0,0 +1,15 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1273', :eg_version);
+
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype )
+SELECT  'opac.did_you_mean.max_suggestions',
+        'opac',
+        'Maximum number of spelling suggestions that may be offered',
+        'If set to -1, provide "best" suggestion if mispelled; if set higher than 0, the maximum suggestions that can be provided; if set to 0, disable suggestions.',
+        'integer'
+  WHERE NOT EXISTS (SELECT 1 FROM config.org_unit_setting_type WHERE name = 'opac.did_you_mean.max_suggestions');
+
+COMMIT;
+
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.DYM_max_suggestions.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.DYM_max_suggestions.sql
deleted file mode 100644 (file)
index 021daf2..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT into config.org_unit_setting_type
-( name, grp, label, description, datatype )
-SELECT  'opac.did_you_mean.max_suggestions',
-        'opac',
-        'Maximum number of spelling suggestions that may be offered',
-        'If set to -1, provide "best" suggestion if mispelled; if set higher than 0, the maximum suggestions that can be provided; if set to 0, disable suggestions.',
-        'integer'
-  WHERE NOT EXISTS (SELECT 1 FROM config.org_unit_setting_type WHERE name = 'opac.did_you_mean.max_suggestions');
-
-COMMIT;
-