From d18de6f6362fa32eb1035fa0786a7ac7c901b6a2 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 29 Jul 2011 21:31:34 +0200 Subject: [PATCH] Fixed an issue where index names exceeded the maximum size permitted by MySQL --- .../install/files/lib/system/database/util/SQLParser.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/database/util/SQLParser.class.php b/wcfsetup/install/files/lib/system/database/util/SQLParser.class.php index 45ba7b2fa8..ffaa048d57 100644 --- a/wcfsetup/install/files/lib/system/database/util/SQLParser.class.php +++ b/wcfsetup/install/files/lib/system/database/util/SQLParser.class.php @@ -311,6 +311,6 @@ class SQLParser { // get first column $columns = ArrayUtil::trim(explode(',', $columns)); - return $tableName . '_' . reset($columns) . ($suffix ? '_' . $suffix : ''); + return md5($tableName . '_' . reset($columns)) . ($suffix ? '_' . $suffix : ''); } } -- 2.20.1