diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-03-28 21:01:07 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-03-29 11:01:04 +0100 |
commit | b0aa366b12d7884f5ae4cc3684e943a8be44129a (patch) | |
tree | 96098070d2dfb5a8606fd798b50ac08d8c842f93 /phpBB/develop | |
parent | ac6f0c94bfbb64a25aee07077327d52d6cb66620 (diff) | |
download | forums-b0aa366b12d7884f5ae4cc3684e943a8be44129a.tar forums-b0aa366b12d7884f5ae4cc3684e943a8be44129a.tar.gz forums-b0aa366b12d7884f5ae4cc3684e943a8be44129a.tar.bz2 forums-b0aa366b12d7884f5ae4cc3684e943a8be44129a.tar.xz forums-b0aa366b12d7884f5ae4cc3684e943a8be44129a.zip |
[ticket/11459] Pass array with migration class names to schema generator
PHPBB3-11459
Diffstat (limited to 'phpBB/develop')
-rw-r--r-- | phpBB/develop/create_schema_files.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/develop/create_schema_files.php b/phpBB/develop/create_schema_files.php index c55b764ded..0cd562b264 100644 --- a/phpBB/develop/create_schema_files.php +++ b/phpBB/develop/create_schema_files.php @@ -24,14 +24,13 @@ $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); -$phpbb_extension_manager = $phpbb_container->get('ext.manager'); -$finder = $phpbb_extension_manager->get_finder(); -$finder = $finder +$classes = $phpbb_container->get('ext.manager') + ->get_finder() ->core_path('phpbb/db/migration/data/') - ->extension_prefix('migration/'); + ->get_classes(); $db_tools = new \phpbb\db\tools($db, true); -$schema_generator = new \phpbb\db\migration\schema_generator($finder, $config, $db, $db_tools, $phpbb_root_path, $phpEx, $table_prefix); +$schema_generator = new \phpbb\db\migration\schema_generator($classes, $config, $db, $db_tools, $phpbb_root_path, $phpEx, $table_prefix); $original_schema_data = $schema_generator->get_schema(); $dbms_type_map = phpbb\db\tools::get_dbms_type_map(); |