Only convert table name to lower-case when installation forces it

Issue #12861

A `lower_case_table_names` setting of `2` does not mean that the table needs to be forced to lower-case
This preserves case unless the `lower_case_table_names` setting is `1`, implying that lower-case should be forced

Signed-off-by: Mike Lewis <mike@mplew.is>
This commit is contained in:
Mike Lewis 2017-01-12 22:06:25 -05:00 committed by Michal Čihař
parent f4c620bcf2
commit 3bf78afeca

View File

@ -1350,7 +1350,7 @@ class Table
);
}
);
if ($lowerCaseTableNames) {
if ($lowerCaseTableNames === '1') {
$new_name = strtolower($new_name);
}