]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0077.data.holds_local_avail_and_override.sql
Stamping upgrade for relaxing rank_ou sorting
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0077.data.holds_local_avail_and_override.sql
1 BEGIN;
2
3 INSERT INTO config.upgrade_log (version) VALUES ('0077');   -- atz
4
5 INSERT INTO config.org_unit_setting_type (name, label, description, datatype)
6     VALUES 
7         ('circ.holds.alert_if_local_avail',
8          'Holds: Local available alert',
9          'If local copy is available, alert the person making the hold',
10          'bool'),
11
12         ('circ.holds.deny_if_local_avail',
13          'Holds: Local available block',
14          'If local copy is available, deny the creation of the hold',
15          'bool')
16     ;
17
18 INSERT INTO permission.perm_list VALUES 
19 (351, 'HOLD_LOCAL_AVAIL_OVERRIDE', oils_i18n_gettext(351, 'Allow a user to place a hold despite the availability of a local copy', 'ppl', 'description'));
20
21 COMMIT;
22