731099f8ac669ca6cd3bd1bb8bc45868836a205e
[koha-ffzg.git] / installer / data / mysql / atomicupdate / Bug_29138.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "29138",
5     description => "Use a zero instead of a no in LoadSearchHistoryToTheFirstLoggedUser",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         # Do you stuffs here
10         $dbh->do(q{
11                 UPDATE systempreferences SET value= IF(value='no',0,1)
12                 WHERE variable = 'LoadSearchHistoryToTheFirstLoggedUser';
13                 });
14         # Print useful stuff here
15         say $out "LoadSearchHistoryToTheFirstLoggedUser updated";
16     },
17 }