Bug 19768: (follow-up) Database update

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Owen Leonard 2024-05-08 17:37:59 +00:00 committed by Katrin Fischer
parent 0945cdf5d6
commit cc8bf034bc
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -0,0 +1,20 @@
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";
},
};