1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/11883] Report completed data step in migration as "Installing Data"

PHPBB3-11883
This commit is contained in:
Nathan
2013-10-02 14:27:46 -05:00
parent 49ce2c13b2
commit 621e6c93ed
3 changed files with 20 additions and 6 deletions

View File

@@ -204,6 +204,7 @@ class migrator
'name' => $name,
'class' => $migration,
'state' => $state,
'task' => '',
);
if (!isset($this->migration_state[$name]))
@@ -231,6 +232,7 @@ class migrator
if (!$state['migration_schema_done'])
{
$this->last_run_migration['task'] = 'apply_schema_changes';
$this->apply_schema_changes($migration->update_schema());
$state['migration_schema_done'] = true;
}
@@ -238,6 +240,7 @@ class migrator
{
try
{
$this->last_run_migration['task'] = 'process_data_step';
$result = $this->process_data_step($migration->update_data(), $state['migration_data_state']);
$state['migration_data_state'] = ($result === true) ? '' : $result;
@@ -308,6 +311,7 @@ class migrator
$this->last_run_migration = array(
'name' => $name,
'class' => $migration,
'task' => '',
);
if ($state['migration_data_done'])
@@ -626,6 +630,7 @@ class migrator
{
continue;
}
return false;
}