Koha/installer/data/mysql/db_revs/210600019.pl
Jonathan Druart 1393e48d8e Bug 26302: (follow-up) DBRev 21.06.00.019
oops

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-08-30 18:06:42 +02:00

15 lines
642 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "26302",
description => "Add system preferences OPACResultsMaxItems and OPACResultsMaxItemsUnavailable",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q|
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES
('OPACResultsMaxItems','1','','Maximum number of available items displayed in search results','Integer'),
('OPACResultsMaxItemsUnavailable','0','','Maximum number of unavailable items displayed in search results','Integer')
|);
},
}