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

[ticket/16284] Provide tables as array in migrations

PHPBB3-16284
This commit is contained in:
Marc Alexander
2020-01-01 12:08:11 +01:00
parent 6c0137c7a3
commit a72810465f
3 changed files with 34 additions and 9 deletions

View File

@@ -34,6 +34,9 @@ abstract class migration implements migration_interface
/** @var string */
protected $table_prefix;
/** @var array Tables array */
protected $tables;
/** @var string */
protected $phpbb_root_path;
@@ -55,13 +58,15 @@ abstract class migration implements migration_interface
* @param string $phpbb_root_path
* @param string $php_ext
* @param string $table_prefix
* @param array $tables
*/
public function __construct(\phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\db\tools\tools_interface $db_tools, $phpbb_root_path, $php_ext, $table_prefix)
public function __construct(\phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\db\tools\tools_interface $db_tools, $phpbb_root_path, $php_ext, $table_prefix, $tables)
{
$this->config = $config;
$this->db = $db;
$this->db_tools = $db_tools;
$this->table_prefix = $table_prefix;
$this->tables = $tables;
$this->phpbb_root_path = $phpbb_root_path;
$this->php_ext = $php_ext;