mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-09 03:28:51 +00:00
[ticket/17525] Run index renaming migration the last in migrations queue
PHPBB-17525
This commit is contained in:
parent
5e9d616f57
commit
4da8591dd8
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class rename_duplicated_index_names extends migration
|
|||
public static function depends_on()
|
||||
{
|
||||
return [
|
||||
'\phpbb\db\migration\data\v400\dev',
|
||||
'\phpbb\db\migration\data\v400\storage_track_index',
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -43,9 +43,9 @@ class rename_duplicated_index_names extends migration
|
|||
$short_table_names = table_helper::map_short_table_names([], $this->table_prefix);
|
||||
foreach ($table_keys as $table_name => $key_names)
|
||||
{
|
||||
$key_name_new = $short_table_names[$table_name] . '_' . $key_name;
|
||||
foreach ($key_names as $key_name)
|
||||
{
|
||||
$key_name_new = $short_table_names[$table_name] . '_' . $key_name;
|
||||
$rename_index[$table_name][$key_name] = $key_name_new;
|
||||
$rename_index[$table_name][$table_name . '_' . $key_name] = $key_name_new;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue