diff options
author | Oliver Schramm <oliver.schramm97@gmail.com> | 2016-08-20 05:42:40 +0200 |
---|---|---|
committer | Oliver Schramm <oliver.schramm97@gmail.com> | 2016-08-20 22:20:20 +0200 |
commit | 775d1c855a393b2b4f3d900608943c8fc453c44f (patch) | |
tree | 39b3d06a58f412a0e63f84e8a1d8e418d7a5acdd /phpBB/phpbb/db/migrator.php | |
parent | e050cf5c1163dc18e948ac0706b86743243d72f5 (diff) | |
download | forums-775d1c855a393b2b4f3d900608943c8fc453c44f.tar forums-775d1c855a393b2b4f3d900608943c8fc453c44f.tar.gz forums-775d1c855a393b2b4f3d900608943c8fc453c44f.tar.bz2 forums-775d1c855a393b2b4f3d900608943c8fc453c44f.tar.xz forums-775d1c855a393b2b4f3d900608943c8fc453c44f.zip |
[ticket/14742] Improve readability of the code
PHPBB3-14742
Diffstat (limited to 'phpBB/phpbb/db/migrator.php')
-rw-r--r-- | phpBB/phpbb/db/migrator.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php index 9bfafd4d3f..2b7353d2b9 100644 --- a/phpBB/phpbb/db/migrator.php +++ b/phpBB/phpbb/db/migrator.php @@ -320,8 +320,10 @@ class migrator $total_time = (is_array($state['migration_data_state']) && isset($state['migration_data_state']['_total_time'])) ? $state['migration_data_state']['_total_time'] : 0.0; $elapsed_time = microtime(true); + $steps = $this->helper->get_schema_steps($migration->update_schema()); $result = $this->process_data_step($steps, $state['migration_data_state']); + $elapsed_time = microtime(true) - $elapsed_time; $total_time += $elapsed_time; @@ -355,7 +357,9 @@ class migrator $total_time = (is_array($state['migration_data_state']) && isset($state['migration_data_state']['_total_time'])) ? $state['migration_data_state']['_total_time'] : 0.0; $elapsed_time = microtime(true); + $result = $this->process_data_step($migration->update_data(), $state['migration_data_state']); + $elapsed_time = microtime(true) - $elapsed_time; $total_time += $elapsed_time; |