]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/1273.data.DYM_max_suggestions.sql
LP#1831803: (follow-up) update release notes formatting
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 1273.data.DYM_max_suggestions.sql
1 BEGIN;
2
3 SELECT evergreen.upgrade_deps_block_check('1273', :eg_version);
4
5 INSERT into config.org_unit_setting_type
6 ( name, grp, label, description, datatype )
7 SELECT  'opac.did_you_mean.max_suggestions',
8         'opac',
9         'Maximum number of spelling suggestions that may be offered',
10         '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.',
11         'integer'
12   WHERE NOT EXISTS (SELECT 1 FROM config.org_unit_setting_type WHERE name = 'opac.did_you_mean.max_suggestions');
13
14 COMMIT;
15