mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00:00
[ticket/14742] Small fixes to migrator
PHPBB3-14742
This commit is contained in:
parent
8e1461ca61
commit
a277f9cf07
1 changed files with 2 additions and 4 deletions
|
@ -87,7 +87,7 @@ class migrator
|
||||||
*
|
*
|
||||||
* @var migrator_output_handler_interface
|
* @var migrator_output_handler_interface
|
||||||
*/
|
*/
|
||||||
public $output_handler;
|
protected $output_handler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor of the database migrator
|
* Constructor of the database migrator
|
||||||
|
@ -333,7 +333,7 @@ class migrator
|
||||||
$state['migration_data_done'] = ($result === true);
|
$state['migration_data_done'] = ($result === true);
|
||||||
$state['migration_end_time'] = ($result === true) ? time() : 0;
|
$state['migration_end_time'] = ($result === true) ? time() : 0;
|
||||||
|
|
||||||
if ($state['migration_schema_done'])
|
if ($state['migration_data_done'])
|
||||||
{
|
{
|
||||||
$this->output_handler->write(array('MIGRATION_DATA_DONE', $name, $elapsed_time), migrator_output_handler_interface::VERBOSITY_NORMAL);
|
$this->output_handler->write(array('MIGRATION_DATA_DONE', $name, $elapsed_time), migrator_output_handler_interface::VERBOSITY_NORMAL);
|
||||||
}
|
}
|
||||||
|
@ -347,7 +347,6 @@ class migrator
|
||||||
// Revert the schema changes
|
// Revert the schema changes
|
||||||
$this->revert_do($name);
|
$this->revert_do($name);
|
||||||
|
|
||||||
// Rethrow exception
|
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -518,7 +517,6 @@ class migrator
|
||||||
$result = $this->run_step($reverse_step, false, !$revert);
|
$result = $this->run_step($reverse_step, false, !$revert);
|
||||||
}
|
}
|
||||||
|
|
||||||
// rethrow the exception
|
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue