1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-02 14:57:37 +02:00

[ticket/13307] Update mysql_upgrader.php to work without the schema_data.php

The file has been delete quite some time ago.

PHPBB3-13307
This commit is contained in:
Joas Schilling
2015-01-09 19:46:14 +01:00
parent d9bdd05c80
commit d2a4d6624f
2 changed files with 7 additions and 4 deletions

View File

@@ -51,7 +51,6 @@ $classes = $finder->core_path('phpbb/')
$db = new \phpbb\db\driver\sqlite();
$schema_generator = new \phpbb\db\migration\schema_generator($classes, new \phpbb\config\config(array()), $db, new \phpbb\db\tools($db, true), $phpbb_root_path, $phpEx, $table_prefix);
$schema_data = $schema_generator->get_schema();
$dbms_type_map = phpbb\db\tools::get_dbms_type_map();
$fp = fopen($schema_path . 'schema.json', 'wb');
fwrite($fp, json_encode($schema_data, JSON_PRETTY_PRINT));