Koha/installer/data/mysql/db_revs/230600043.pl
Tomas Cohen Arazi 3459a56de5
Bug 31357: DBRev 23.06.00.043
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-20 16:31:16 -03:00

17 lines
603 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "31357",
description => "Add new system preference IntranetReadingHistoryHolds",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) SELECT
'IntranetReadingHistoryHolds', value, '', 'If ON, Holds history is enabled for all patrons', 'YesNo'
FROM systempreferences WHERE variable = 'intranetreadinghistory';
}
);
},
}