Koha/installer/data/mysql/atomicupdate/bug_19768.pl
Owen Leonard cc8bf034bc
Bug 19768: (follow-up) Database update
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-05-08 20:04:09 +02:00

20 lines
710 B
Perl
Executable file

use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
return {
bug_number => "19768",
description => "Add 'Title notes' tab to OpacSerialDefaultTab preference",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(
q{ UPDATE systempreferences SET value = 'holdings|serialcollection|subscriptions|titlenotes', options = 'holdings|serialcollection|subscriptions|titlenotes' WHERE variable = 'opacSerialDefaultTab' }
);
# Print useful stuff here
say $out "Added 'Title notes' option to opacSerialDefaultTab preference";
},
};