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

(-)a/installer/data/mysql/atomicupdate/bug_24854.perl (-1 / +16 lines)
Line 0 Link Here
0
- 
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    my $ft_enabled = $dbh->selectrow_array(q|
4
        SELECT COUNT(*) FROM systempreferences WHERE variable like "IDreamBooks%" and value="1"
5
    |);
6
    if ( $ft_enabled ) {
7
        $dbh->do(q|
8
            UPDATE systempreferences
9
            SET value="0"
10
            WHERE variable like "IDreamBooks%"
11
        |);
12
    }
13
14
    SetVersion( $DBversion );
15
    print "Upgrade to $DBversion done (Bug 24854 - Disable IDreamBooks)\n";
16
}

Return to bug 24854