]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0550.data.patron_opt_in_settings.sql
Break up expensive queries, match index to quals
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0550.data.patron_opt_in_settings.sql
1 BEGIN;
2
3 -- check whether patch can be applied
4 SELECT evergreen.upgrade_deps_block_check('0550', :eg_version);
5
6 INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) VALUES (
7     'org.patron_opt_boundary',
8     oils_i18n_gettext( 
9         'org.patron_opt_boundary',
10         'Circ: Patron Opt-In Boundary',
11         'coust',
12         'label'
13     ),
14     oils_i18n_gettext( 
15         'org.patron_opt_boundary',
16         'This determines at which depth above which patrons must be opted in, and below which patrons will be assumed to be opted in.',
17         'coust',
18         'label'
19     ),
20     'integer'
21 );
22
23 INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) VALUES (
24     'org.patron_opt_default',
25     oils_i18n_gettext( 
26         'org.patron_opt_default',
27         'Circ: Patron Opt-In Default',
28         'coust',
29         'label'
30     ),
31     oils_i18n_gettext( 
32         'org.patron_opt_default',
33         'This is the default depth at which a patron is opted in; it is calculated as an org unit relative to the current workstation.',
34         'coust',
35         'label'
36     ),
37     'integer'
38 );
39
40 COMMIT;