View | Details | Raw Unified | Return to bug 29138
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/Bug_29138.pl (-7 / +3 lines)
Lines 6-17 return { Link Here
6
    up => sub {
6
    up => sub {
7
        my ($args) = @_;
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        # Do you stuffs here
10
        $dbh->do(q{
9
        $dbh->do(q{
11
                UPDATE systempreferences SET value= IF(value='no',0,1)
10
            UPDATE systempreferences SET value=0
12
                WHERE variable = 'LoadSearchHistoryToTheFirstLoggedUser';
11
            WHERE variable='LoadSearchHistoryToTheFirstLoggedUser' AND IFNULL(value,0)<>1;
13
                });
12
        });
14
        # Print useful stuff here
15
        say $out "LoadSearchHistoryToTheFirstLoggedUser updated";
16
    },
13
    },
17
}
14
}
18
- 

Return to bug 29138