Bug 19768: (follow-up) Database update
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
0945cdf5d6
commit
cc8bf034bc
1 changed files with 20 additions and 0 deletions
20
installer/data/mysql/atomicupdate/bug_19768.pl
Executable file
20
installer/data/mysql/atomicupdate/bug_19768.pl
Executable 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";
|
||||||
|
|
||||||
|
},
|
||||||
|
};
|
Loading…
Reference in a new issue