mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/17525] Fix handling index name prefix logic for renaming
PHPBB-17525
This commit is contained in:
@@ -98,6 +98,7 @@ class add_tables extends task_base
|
||||
$this->schema_file_path = $phpbb_root_path . 'store/schema.json';
|
||||
$this->table_prefix = $this->config->get('table_prefix');
|
||||
$this->change_prefix = $this->config->get('change_table_prefix', true);
|
||||
$this->db_tools->set_table_prefix($this->table_prefix);
|
||||
|
||||
parent::__construct(true);
|
||||
}
|
||||
|
@@ -145,6 +145,7 @@ class create_schema_file extends \phpbb\install\task_base
|
||||
$migrator_classes = $finder->core_path('phpbb/db/migration/data/')->get_classes();
|
||||
$factory = new \phpbb\db\tools\factory();
|
||||
$db_tools = $factory->get($this->db_doctrine, true);
|
||||
$db_tools->set_table_prefix($table_prefix);
|
||||
$tables_data = \Symfony\Component\Yaml\Yaml::parseFile($this->phpbb_root_path . '/config/default/container/tables.yml');
|
||||
$tables = [];
|
||||
foreach ($tables_data['parameters'] as $parameter => $table)
|
||||
|
Reference in New Issue
Block a user