From 0c5bc4b75f913b0e18c121958bbce4189efe6788 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 8 May 2024 17:37:59 +0000 Subject: [PATCH] Bug 19768: (follow-up) Database update --- .../data/mysql/atomicupdate/bug_19768.pl | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_19768.pl diff --git a/installer/data/mysql/atomicupdate/bug_19768.pl b/installer/data/mysql/atomicupdate/bug_19768.pl new file mode 100755 index 0000000000..0ea2a3d5a0 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_19768.pl @@ -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"; + + }, +}; -- 2.39.2