aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/test.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/test.php')
-rw-r--r--phpBB/test.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/phpBB/test.php b/phpBB/test.php
index 7a2dafb7ef..6602aa8dcc 100644
--- a/phpBB/test.php
+++ b/phpBB/test.php
@@ -88,6 +88,7 @@ if (!$db_tools->sql_table_exists(MIGRATIONS_TABLE))
$db_tools->sql_create_table(MIGRATIONS_TABLE, array(
'COLUMNS' => array(
'migration_name' => array('VCHAR', ''),
+ 'migration_depends_on' => array('TEXT', ''),
'migration_schema_done' => array('BOOL', 0),
'migration_data_done' => array('BOOL', 0),
'migration_data_state' => array('TEXT', ''),
@@ -106,7 +107,17 @@ $safe_time_limit = (ini_get('max_execution_time') / 2);
while (!$migrator->finished())
{
- $migrator->update();
+ try
+ {
+ $migrator->update();
+ }
+ catch (phpbb_db_migration_exception $e)
+ {
+ echo $e;
+
+ garbage_collection();
+ exit_handler();
+ }
echo $migrator->last_run_migration['name'] . '<br />';