]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0224.data.hold_has_copy_at_stuff.sql
LP#1759238: stamping upgrade script
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0224.data.hold_has_copy_at_stuff.sql
1 BEGIN;
2
3 INSERT INTO config.upgrade_log (version) VALUES ('0224');
4
5 INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
6     VALUES (
7         'circ.holds.hold_has_copy_at.alert',
8         oils_i18n_gettext('circ.holds.hold_has_copy_at.alert', 'Holds: Has Local Copy Alert', 'coust', 'label'),
9         oils_i18n_gettext('circ.holds.hold_has_copy_at.alert', 'If there is an available copy at the requesting library that could fulfill a hold during hold placement time, alert the patron', 'coust', 'description'),
10         'bool'
11     ),(
12         'circ.holds.hold_has_copy_at.block',
13         oils_i18n_gettext('circ.holds.hold_has_copy_at.block', 'Holds: Has Local Copy Block', 'coust', 'label'),
14         oils_i18n_gettext('circ.holds.hold_has_copy_at.block', 'If there is an available copy at the requesting library that could fulfill a hold during hold placement time, do not allow the hold to be placed', 'coust', 'description'),
15         'bool'
16     );
17
18 INSERT INTO permission.perm_list (id, code, description)
19     VALUES (
20         390, 
21         'OVERRIDE_HOLD_HAS_LOCAL_COPY',
22         oils_i18n_gettext( 390, 'Allow a user to override the circ.holds.hold_has_copy_at.block setting', 'ppl', 'description' )
23     );
24
25 COMMIT;
26