Bug 19768: (follow-up) Database update
[koha.git] / installer / data / mysql / atomicupdate / bug_19768.pl
1 use Modern::Perl;
2 use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4 return {
5     bug_number  => "19768",
6     description => "Add 'Title notes' tab to OpacSerialDefaultTab preference",
7     up          => sub {
8         my ($args) = @_;
9         my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11         # Do you stuffs here
12         $dbh->do(
13             q{ UPDATE systempreferences SET value = 'holdings|serialcollection|subscriptions|titlenotes', options = 'holdings|serialcollection|subscriptions|titlenotes' WHERE variable = 'opacSerialDefaultTab' }
14         );
15
16         # Print useful stuff here
17         say $out "Added 'Title notes' option to opacSerialDefaultTab preference";
18
19     },
20 };