Browse Source

Bug 26302: DBRev 21.06.00.019

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.11.x
Jonathan Druart 5 months ago
parent
commit
e52cc698fa
  1. 2
      Koha.pm
  2. 9
      installer/data/mysql/atomicupdate/bug_26302.perl
  3. 15
      installer/data/mysql/db_revs/210600019.pl

2
Koha.pm

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "21.06.00.018";
$VERSION = "21.06.00.019";
sub version {
return $VERSION;

9
installer/data/mysql/atomicupdate/bug_26302.perl

@ -1,9 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$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')
|);
NewVersion( $DBversion, 26302, "Add preferences OPACResultsMaxItems and OPACResultsMaxItemsUnavailable");
}

15
installer/data/mysql/db_revs/210600019.pl

@ -0,0 +1,15 @@
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')
|);
},
}
Loading…
Cancel
Save