aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop/mysql_upgrader.php
diff options
context:
space:
mode:
authoralf007 <alf007@free.fr>2015-05-25 00:14:48 +0200
committeralf007 <alf007@free.fr>2015-05-25 00:14:48 +0200
commit6025c40cab2d768c3cad3586fa1bfbfa6c9eeb3b (patch)
treebd40622b18c3ce4d8174f2dc717ae19a12cf3d1a /phpBB/develop/mysql_upgrader.php
parent6a4cb42565d7e1663da4d02cd8d624b034b20afe (diff)
parent6322970766bd9fa78327fa2ca6a6a43d73b680ee (diff)
downloadforums-6025c40cab2d768c3cad3586fa1bfbfa6c9eeb3b.tar
forums-6025c40cab2d768c3cad3586fa1bfbfa6c9eeb3b.tar.gz
forums-6025c40cab2d768c3cad3586fa1bfbfa6c9eeb3b.tar.bz2
forums-6025c40cab2d768c3cad3586fa1bfbfa6c9eeb3b.tar.xz
forums-6025c40cab2d768c3cad3586fa1bfbfa6c9eeb3b.zip
Merge pull request #1 from phpbb/develop-ascraeus
Develop ascraeus
Diffstat (limited to 'phpBB/develop/mysql_upgrader.php')
-rw-r--r--phpBB/develop/mysql_upgrader.php12
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)
{