]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0157.data.fund-spending-limits.sql
Update permission name to match existing ones
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0157.data.fund-spending-limits.sql
1 BEGIN;
2
3 INSERT INTO config.upgrade_log (version) VALUES ('0157'); -- Scott McKellar
4
5 INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
6 VALUES (
7         'acq.fund.balance_limit.warn',
8         oils_i18n_gettext('acq.fund.balance_limit.warn', 'Fund Spending Limit for Warning', 'coust', 'label'),
9         oils_i18n_gettext('acq.fund.balance_limit.warn', 'When the amount remaining in the fund, including spent money and encumbrances, goes below this percentage, attempts to spend from the fund will result in a warning to the staff.', 'coust', 'descripton'),
10         'integer'
11 );
12
13 INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
14 VALUES (
15         'acq.fund.balance_limit.block',
16         oils_i18n_gettext('acq.fnd.balance_limit.block', 'Fund Spending Limit for Block', 'coust', 'label'),
17         oils_i18n_gettext('acq.fund.balance_limit.block', 'When the amount remaining in the fund, including spent money and encumbrances, goes below this percentage, attempts to spend from the fund will be blocked.', 'coust', 'description'),
18         'integer'
19 );
20
21 COMMIT;