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

(-)a/installer/data/mysql/atomicupdate/bug_39526_unify_syspref_variable_names_for_elasticsearch.pl (-6 / +3 lines)
Lines 8-18 return { Link Here
8
        my ($args) = @_;
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
10
11
        # Do you stuffs here
12
        $dbh->do(
11
        $dbh->do(
13
            q{update systempreferences set variable = REGEXP_REPLACE(variable, '^ES', 'Elasticsearch') where variable like 'ES%'}
12
            q{UPDATE systempreferences SET variable = 'ElasticsearchPreventAutoTruncate' WHERE variable = 'ESPreventAutoTruncate'}
14
        );
13
            ) == 1
15
14
            && say $out "Renamed system preference 'ESPreventAutoTruncate' to 'ElasticsearchPreventAutoTruncate'";
16
        say $out "Renamed system preference 'ES..' to 'Elasticsearch..'";
17
    },
15
    },
18
};
16
};
19
- 

Return to bug 39526