diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-01-09 19:46:14 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-01-09 19:46:14 +0100 |
commit | d2a4d6624f9e994469fff8b37af51caa5de3287c (patch) | |
tree | cba9dc545edcd24137858f7d462c4a043e568cf1 /phpBB/develop/mysql_upgrader.php | |
parent | d9bdd05c8065eecc99c55b827a8af575fcb08f1b (diff) | |
download | forums-d2a4d6624f9e994469fff8b37af51caa5de3287c.tar forums-d2a4d6624f9e994469fff8b37af51caa5de3287c.tar.gz forums-d2a4d6624f9e994469fff8b37af51caa5de3287c.tar.bz2 forums-d2a4d6624f9e994469fff8b37af51caa5de3287c.tar.xz forums-d2a4d6624f9e994469fff8b37af51caa5de3287c.zip |
[ticket/13307] Update mysql_upgrader.php to work without the schema_data.php
The file has been delete quite some time ago.
PHPBB3-13307
Diffstat (limited to 'phpBB/develop/mysql_upgrader.php')
-rw-r--r-- | phpBB/develop/mysql_upgrader.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/phpBB/develop/mysql_upgrader.php b/phpBB/develop/mysql_upgrader.php index 5c558f0b8e..698be9d303 100644 --- a/phpBB/develop/mysql_upgrader.php +++ b/phpBB/develop/mysql_upgrader.php @@ -62,10 +62,14 @@ echo "USE $dbname;$newline$newline"; @set_time_limit(0); -require($phpbb_root_path . 'includes/db/schema_data.' . $phpEx); -require($phpbb_root_path . 'phpbb/db/tools.' . $phpEx); - -$dbms_type_map = phpbb\db\tools::get_dbms_type_map(); +$finder = new \phpbb\finder(new \phpbb\filesystem(), $phpbb_root_path); +$classes = $finder->core_path('phpbb/') + ->directory('/db/migration/data') + ->get_classes(); + +$schema_generator = new \phpbb\db\migration\schema_generator($classes, $config, $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(); foreach ($schema_data as $table_name => $table_data) { |