mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/11459] Use new migration/schema_generator to create schema files
PHPBB3-11459
This commit is contained in:
parent
3467700670
commit
9d56e60c66
1 changed files with 11 additions and 1 deletions
|
@ -19,9 +19,19 @@ if (!is_writable($schema_path))
|
|||
}
|
||||
|
||||
define('IN_PHPBB', true);
|
||||
define('IN_INSTALL', true);
|
||||
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../';
|
||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
include($phpbb_root_path . 'common.' . $phpEx);
|
||||
|
||||
require(dirname(__FILE__) . '/../phpbb/db/tools.php');
|
||||
$phpbb_extension_manager = $phpbb_container->get('ext.manager');
|
||||
$finder = $finder
|
||||
->core_path('phpbb/db/migration/data/')
|
||||
->extension_prefix('migration/');
|
||||
$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_data = $schema_generator->get_schema();
|
||||
$dbms_type_map = phpbb\db\tools::get_dbms_type_map();
|
||||
|
||||
// A list of types being unsigned for better reference in some db's
|
||||
|
|
Loading…
Add table
Reference in a new issue