]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0274.data.org-setting-type-est-wait.sql
f1c02adae7a394f7e584942311f8d3e83a9a7d43
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0274.data.org-setting-type-est-wait.sql
1 BEGIN;
2
3 INSERT INTO config.upgrade_log (version) VALUES ('0274'); -- Scott McKellar
4
5 UPDATE config.org_unit_setting_type SET
6         name = 'circ.holds.default_estimated_wait_interval',
7         label = 'Holds: Default Estimated Wait',
8         description = 'When predicting the amount of time a patron will be waiting for a hold to be fulfilled, this is the default estimated length of time to assume an item will be checked out.',
9         datatype = 'interval'
10 WHERE name = 'circ.hold_estimate_wait_interval';
11
12 UPDATE actor.org_unit_setting SET
13         name = 'circ.holds.default_estimated_wait_interval',
14         value = value || ' days'
15 WHERE name = 'circ.hold_estimate_wait_interval';
16
17 INSERT INTO config.org_unit_setting_type (
18         name,
19         label,
20         description,
21         datatype
22 ) VALUES (
23         'circ.holds.min_estimated_wait_interval',
24         'Holds: Minimum Estimated Wait',
25         'When predicting the amount of time a patron will be waiting for a hold to be fulfilled, this is the minimum estimated length of time to assume an item will be checked out.',
26         'interval'
27 );
28
29 COMMIT;