Koha/installer/data/mysql/db_revs/230600034.pl
Tomas Cohen Arazi 0b5bf20c99
Bug 21246: DBRev 23.06.00.034
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-11 10:31:42 -03:00

18 lines
612 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "21246",
description => "A preference to specify how many previous patrons to show for showLastPatron",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('showLastPatronCount', '1', NULL, 'How many patrons should showLastPatron remember', 'Integer')
}
);
say $out "Added new system preference 'showLastPatronCount'";
},
};