Line 0
Link Here
|
|
|
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 |
} |