1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/17525] Automatically handle index name prefixes

PHPBB-17525
This commit is contained in:
rxu
2025-07-01 23:32:36 +07:00
parent 8e0ec1edd2
commit 669af8f3aa
2 changed files with 24 additions and 18 deletions

View File

@@ -424,7 +424,7 @@ class doctrine implements tools_interface
}
else if ($remove_prefix)
{
$index_name = remove_prefix($index_name);
$index_name = self::remove_prefix($index_name);
}
return $index_name;
@@ -697,6 +697,7 @@ class doctrine implements tools_interface
foreach ($table_data['KEYS'] as $key_name => $key_data)
{
$columns = (is_array($key_data[1])) ? $key_data[1] : [$key_data[1]];
$key_name = self::normalize_index_name($table_name, $key_name);
// Supports key columns defined with there length
$columns = array_map(function (string $column)