aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/tools.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-08-07 16:51:04 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-08-07 16:51:04 +0200
commit39a99df080652dbb8f36b952d93c450230c25ccc (patch)
tree45906de7c24a5fb860d923bd267276ca95a51ae1 /phpBB/phpbb/db/tools.php
parent8f1be5e7414cd6cd79af8125962303af9c90b24e (diff)
parent9b36b5283cc29f59428206726f666554b0e0a358 (diff)
downloadforums-39a99df080652dbb8f36b952d93c450230c25ccc.tar
forums-39a99df080652dbb8f36b952d93c450230c25ccc.tar.gz
forums-39a99df080652dbb8f36b952d93c450230c25ccc.tar.bz2
forums-39a99df080652dbb8f36b952d93c450230c25ccc.tar.xz
forums-39a99df080652dbb8f36b952d93c450230c25ccc.zip
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12873] Add migration to rename the index [ticket/12873] Don not touch the existing migrations [ticket/12873] Test the good identifier in \phpbb\db\tools
Diffstat (limited to 'phpBB/phpbb/db/tools.php')
-rw-r--r--phpBB/phpbb/db/tools.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php
index ae0c695aa2..5d93eb8246 100644
--- a/phpBB/phpbb/db/tools.php
+++ b/phpBB/phpbb/db/tools.php
@@ -2104,7 +2104,7 @@ class tools
$statements = array();
$table_prefix = substr(CONFIG_TABLE, 0, -6); // strlen(config)
- if (strlen($table_name . $index_name) - strlen($table_prefix) > 24)
+ if (strlen($table_name . '_' . $index_name) - strlen($table_prefix) > 24)
{
$max_length = strlen($table_prefix) + 24;
trigger_error("Index name '{$table_name}_$index_name' on table '$table_name' is too long. The maximum is $max_length characters.", E_USER_ERROR);