Bug 30933: Database revision (new pref)
Adds pref ListOwnerDesignated. Generalize description of ListOwnershipUponPatronDeletion a bit. Test plan: Run updatedatabase. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
5182341cd1
commit
fc5d9c013e
2 changed files with 20 additions and 1 deletions
18
installer/data/mysql/atomicupdate/bug_30933.pl
Executable file
18
installer/data/mysql/atomicupdate/bug_30933.pl
Executable file
|
@ -0,0 +1,18 @@
|
|||
use Modern::Perl;
|
||||
|
||||
return {
|
||||
bug_number => 30933,
|
||||
description => "Add pref ListOwnerDesignated",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ($dbh, $out) = @$args{qw(dbh out)};
|
||||
$dbh->do(q{
|
||||
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type)
|
||||
VALUES ('ListOwnerDesignated', NULL, NULL, 'Designated list owner at patron deletion', 'Free')
|
||||
});
|
||||
$dbh->do(q{
|
||||
UPDATE systempreferences SET explanation='Defines the action on their public or shared lists when patron is deleted'
|
||||
WHERE variable = 'ListOwnershipUponPatronDeletion'
|
||||
});
|
||||
},
|
||||
};
|
|
@ -327,7 +327,8 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
|
|||
('LinkerModule','Default','Default|FirstMatch|LastMatch','Chooses which linker module to use (see documentation).','Choice'),
|
||||
('LinkerOptions','','','A pipe-separated list of options for the linker.','free'),
|
||||
('LinkerRelink','1',NULL,'If ON the authority linker will relink headings that have previously been linked every time it runs.','YesNo'),
|
||||
('ListOwnershipUponPatronDeletion', 'delete', 'delete|transfer', 'When deleting a patron who owns public lists, either delete the public lists or transfer ownership to the patron who deleted the owner', 'Choice'),
|
||||
('ListOwnerDesignated', NULL, NULL, 'Designated list owner at patron deletion', 'Free'),
|
||||
('ListOwnershipUponPatronDeletion', 'delete', 'delete|transfer', 'Defines the action on their public or shared lists when patron is deleted', 'Choice'),
|
||||
('LoadSearchHistoryToTheFirstLoggedUser', '1', NULL, 'If ON, the next user will automatically get the last searches in their history', 'YesNo'),
|
||||
('LocalCoverImages','0','1','Display local cover images on intranet details pages.','YesNo'),
|
||||
('LocalHoldsPriority', '0', NULL, 'Enables the LocalHoldsPriority feature', 'YesNo'),
|
||||
|
|
Loading…
Reference in a new issue