From 3bf78afeca5c4965aa1fef66f2bdf34409e2a2da Mon Sep 17 00:00:00 2001 From: Mike Lewis Date: Thu, 12 Jan 2017 22:06:25 -0500 Subject: [PATCH] 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 --- libraries/Table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Table.php b/libraries/Table.php index c4fca789a8..7e5792e246 100644 --- a/libraries/Table.php +++ b/libraries/Table.php @@ -1350,7 +1350,7 @@ class Table ); } ); - if ($lowerCaseTableNames) { + if ($lowerCaseTableNames === '1') { $new_name = strtolower($new_name); }