Skip to content

Commit

Permalink
Only convert table name to lower-case when installation forces it
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
MPLew-is authored and nijel committed Jan 18, 2017
1 parent f4c620b commit 3bf78af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/Table.php
Expand Up @@ -1350,7 +1350,7 @@ function () {
);
}
);
if ($lowerCaseTableNames) {
if ($lowerCaseTableNames === '1') {
$new_name = strtolower($new_name);
}

Expand Down

0 comments on commit 3bf78af

Please sign in to comment.