]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0323.data.booking.elbow_room.sql
Booking: bit-by-bit forward-port; see commit msg for r16827
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0323.data.booking.elbow_room.sql
1 BEGIN;
2
3 INSERT INTO config.upgrade_log (version) VALUES ('0323'); -- senator
4
5 -- In booking, elbow room defines:
6 --  a) how far in the future you must make a reservation on a given item if
7 --      that item will have to transit somewhere to fulfill the reservation.
8 --  b) how soon a reservation must be starting for the reserved item to
9 --      be op-captured by the checkin interface.
10
11 INSERT INTO config.org_unit_setting_type
12     (name, label, description, datatype) VALUES (
13         'circ.booking_reservation.default_elbow_room',
14         oils_i18n_gettext(
15             'circ.booking_reservation.default_elbow_room',
16             'Booking: Elbow room',
17             'coust',
18             'label'
19         ),
20         oils_i18n_gettext(
21             'circ.booking_reservation.default_elbow_room',
22             'Elbow room specifies how far in the future you must make a reservation on an item if that item will have to transit to reach its pickup location.  It secondarily defines how soon a reservation on a given item must start before the check-in process will opportunistically capture it for the reservation shelf.',
23             'coust',
24             'label'
25         ),
26         'interval'
27     );
28
29 INSERT INTO actor.org_unit_setting (org_unit, name, value) VALUES (
30     (SELECT id FROM actor.org_unit WHERE parent_ou IS NULL),
31     'circ.booking_reservation.default_elbow_room',
32     '"1 day"'
33 );
34
35 COMMIT;