]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0745.data.prewarn_expire_setting.sql
LP#1917826: tweaks to data update
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0745.data.prewarn_expire_setting.sql
1 -- Evergreen DB patch 0745.data.prewarn_expire_setting.sql
2 --
3 -- Configuration setting to warn staff when an account is about to expire
4 --
5 BEGIN;
6
7 -- check whether patch can be applied
8 SELECT evergreen.upgrade_deps_block_check('0745', :eg_version);
9
10 INSERT INTO config.org_unit_setting_type
11     (name, grp, label, description, datatype)
12     VALUES (
13         'circ.patron_expires_soon_warning',
14         'circ',
15         oils_i18n_gettext(
16             'circ.patron_expires_soon_warning',
17             'Warn when patron account is about to expire',
18             'coust',
19             'label'
20         ),
21         oils_i18n_gettext(
22             'circ.patron_expires_soon_warning',
23             'Warn when patron account is about to expire. If set, the staff client displays a warning this many days before the expiry of a patron account. Value is in number of days, for example: 3 for 3 days.',
24             'coust',
25             'description'
26         ),
27         'integer'
28     );
29
30 COMMIT;