From 0806c74084086d778c54ea6e87ab582deb9ecf43 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sat, 9 Aug 2014 14:29:59 +0200 Subject: [PATCH] [ticket/12710] Prefix column so it does not start with a number PHPBB3-12710 --- phpBB/phpbb/db/tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php index 72bc7d72f1..fccc731026 100644 --- a/phpBB/phpbb/db/tools.php +++ b/phpBB/phpbb/db/tools.php @@ -2378,7 +2378,7 @@ class tools } } - $temp_column_name = substr(md5($column_name), 0, 30); + $temp_column_name = 'temp_' . substr(md5($column_name), 0, 25); // Add a temporary table with the new type $result = $this->sql_column_add($table_name, $temp_column_name, $original_column_data); $statements = array_merge($statements, $result);