]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/1272.data.patron_collections_exempt.sql
LP#1831803: (follow-up) update release notes formatting
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 1272.data.patron_collections_exempt.sql
1 BEGIN;
2
3 SELECT evergreen.upgrade_deps_block_check('1272', :eg_version);
4
5 DO $$
6 BEGIN
7
8   PERFORM FROM config.usr_setting_type WHERE name = 'circ.collections.exempt';
9
10   IF NOT FOUND THEN
11
12     INSERT INTO config.usr_setting_type (
13       name,
14       opac_visible,
15       label,
16       description,
17       datatype,
18       reg_default
19     ) VALUES (
20       'circ.collections.exempt',
21       FALSE,
22       oils_i18n_gettext(
23         'circ.collections.exempt',
24         'Collections: Exempt',
25         'cust',
26         'label'
27       ),
28       oils_i18n_gettext(
29         'circ.collections.exempt',
30         'User is exempt from collections tracking/processing',
31         'cust',
32         'description'
33       ),
34       'bool',
35       'false'
36     );
37
38   END IF;
39
40 END
41 $$;
42
43 COMMIT;