]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0001.data.config.org_unit_setting_type.sql
LP1894131 Sticky catalog holdings org select
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0001.data.config.org_unit_setting_type.sql
1 BEGIN;
2
3 -- Org Unit Settings for configuring org unit weights and org unit max-loops for hold targeting
4
5 INSERT INTO config.upgrade_log (version) VALUES ('0001');
6
7 INSERT INTO config.org_unit_setting_type (name, label, description, datatype) VALUES (
8     'circ.holds.org_unit_target_weight',
9     'Holds: Org Unit Target Weight',
10     'Org Units can be organized into hold target groups based on a weight.  Potential copies from org units with the same weight are chosen at random.',
11     'integer'
12 );
13
14 INSERT INTO config.org_unit_setting_type (name, label, description, datatype) VALUES (
15     'circ.holds.target_holds_by_org_unit_weight',
16     'Holds: Use weight-based hold targeting',
17     'Use library weight based hold targeting',
18     'bool'
19 );
20
21 INSERT INTO config.org_unit_setting_type (name, label, description, datatype) VALUES (
22     'circ.holds.max_org_unit_target_loops',
23     'Holds: Maximum library target attempts',
24     'When this value is set and greater than 0, the system will only attempt to find a copy at each possible branch the configured number of times',
25     'integer'
26 );
27
28 COMMIT;
29