]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0632.data.username-limit-settings.sql
LP#1917826: tweaks to data update
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0632.data.username-limit-settings.sql
1 BEGIN;
2
3 -- check whether patch can be applied
4 SELECT evergreen.upgrade_deps_block_check('0632', :eg_version);
5
6 INSERT INTO config.org_unit_setting_type (name, grp, label, description, datatype) VALUES
7 ( 'opac.username_regex', 'glob',
8     oils_i18n_gettext('opac.username_regex',
9         'Patron username format',
10         'coust', 'label'),
11     oils_i18n_gettext('opac.username_regex',
12         'Regular expression defining the patron username format, used for patron registration and self-service username changing only',
13         'coust', 'description'),
14     'string')
15 ,( 'opac.lock_usernames', 'glob',
16     oils_i18n_gettext('opac.lock_usernames',
17         'Lock Usernames',
18         'coust', 'label'),
19     oils_i18n_gettext('opac.lock_usernames',
20         'If enabled username changing via the OPAC will be disabled',
21         'coust', 'description'),
22     'bool')
23 ,( 'opac.unlimit_usernames', 'glob',
24     oils_i18n_gettext('opac.unlimit_usernames',
25         'Allow multiple username changes',
26         'coust', 'label'),
27     oils_i18n_gettext('opac.unlimit_usernames',
28         'If enabled (and Lock Usernames is not set) patrons will be allowed to change their username when it does not look like a barcode. Otherwise username changing in the OPAC will only be allowed when the patron''s username looks like a barcode.',
29         'coust', 'description'),
30     'bool')
31 ;
32
33 COMMIT;