Bug 21549: Database revision for new preference

Introducing LockExpiredDelay.

Test plan:
Run upgrade. Check syspref.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Marcel de Rooy 2020-08-10 13:37:42 +00:00 committed by Jonathan Druart
parent 1e85ac9612
commit 46ae8a2cdb
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,9 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$dbh->do(q|
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
VALUES ('LockExpiredDelay','','','Delay for locking expired patrons (empty means no locking)','Integer')
|);
NewVersion( $DBversion, 21549, "Add pref LockExpiredDelay");
}

View File

@ -315,6 +315,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('LocalHoldsPriority', '0', NULL, 'Enables the LocalHoldsPriority feature', 'YesNo'),
('LocalHoldsPriorityItemControl', 'holdingbranch', 'holdingbranch|homebranch', 'decides if the feature operates using the item''s home or holding library.', 'Choice'),
('LocalHoldsPriorityPatronControl', 'PickupLibrary', 'HomeLibrary|PickupLibrary', 'decides if the feature operates using the library set as the patron''s home library, or the library set as the pickup library for the given hold.', 'Choice'),
('LockExpiredDelay','','','Delay for locking expired patrons (empty means no locking)','Integer'),
('makePreviousSerialAvailable','0','','make previous serial automatically available when collecting a new serial. Please note that the item-level_itypes syspref must be set to specific item.','YesNo'),
('Mana','2',NULL,'request to Mana Webservice. Mana centralize common information between other Koha to facilitate the creation of new subscriptions, vendors, report queries etc... You can search, share, import and comment the content of Mana.','Choice'),
('ManInvInNoissuesCharge','1',NULL,'MANUAL_INV charges block checkouts (added to noissuescharge).','YesNo'),

View File

@ -100,6 +100,12 @@ Patrons:
1: Allow patrons
0: Allow only staff
- "to allow/disallow auto-renewal for account. If allowed a patron will be able to update their own account to allow/disallow auto-renewal."
-
- Lock expired patrons after
- pref: LockExpiredDelay
class: integer
- days. Leave empty to disable this behavior.
Membership expiry:
-
- When renewing borrowers, base the new expiry date on