]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/XXXX.data.restrict_opt_to_depth_setting.sql
6e0a3d806ae9d97fde3e05bd8614a16950b7813e
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / XXXX.data.restrict_opt_to_depth_setting.sql
1 BEGIN;
2
3 SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
4
5 INSERT INTO config.org_unit_setting_type
6     (name, grp, label, description, datatype)
7     VALUES
8         ('org.restrict_opt_to_depth',
9          'sec',
10          oils_i18n_gettext('org.restrict_opt_to_depth',
11             'Restrict patron opt-in to home library and related orgs at specified depth',
12             'coust', 'label'),
13          oils_i18n_gettext('org.restrict_opt_to_depth',
14             'Patrons at this library can only be opted-in at org units which are within the '||
15             'library''s section of the org tree, at or below the depth specified by this setting. '||
16             'They cannot be opted in at any other libraries.',
17             'coust', 'description'),
18         'integer');
19
20 COMMIT;
21