mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Merge remote-tracking branch 'EXreaction/ticket/11883' into develop
# By Nathan (1) and Nathan Guse (1) # Via Nathan Guse * EXreaction/ticket/11883: [ticket/11883] Only output the migration time, not total [ticket/11883] Report completed data step in migration as "Installing Data"
This commit is contained in:
@@ -209,6 +209,7 @@ class migrator
|
||||
'name' => $name,
|
||||
'class' => $migration,
|
||||
'state' => $state,
|
||||
'task' => '',
|
||||
);
|
||||
|
||||
if (!isset($this->migration_state[$name]))
|
||||
@@ -236,6 +237,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;
|
||||
}
|
||||
@@ -243,6 +245,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;
|
||||
@@ -313,6 +316,7 @@ class migrator
|
||||
$this->last_run_migration = array(
|
||||
'name' => $name,
|
||||
'class' => $migration,
|
||||
'task' => '',
|
||||
);
|
||||
|
||||
if ($state['migration_data_done'])
|
||||
@@ -631,6 +635,7 @@ class migrator
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user