Changeset 31183


Ignore:
Timestamp:
May 28, 2015, 3:10:31 PM (9 years ago)
Author:
plg
Message:

feature 3225: add elapsed time on each upgrade

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/upgrade_2.6.0.php

    r29665 r31183  
    106106  // $upgrade_description variable which describe briefly what the upgrade
    107107  // script does.
     108  $up_start = get_moment();
    108109  include(UPGRADES_PATH.'/'.$upgrade_id.'-database.php');
    109110
     
    113114  (id, applied, description)
    114115  VALUES
    115   (\''.$upgrade_id.'\', NOW(), \'[migration from 2.6.0 to '.PHPWG_VERSION.'] '.$upgrade_description.'\')
     116  (\''.$upgrade_id.'\', NOW(), \'[migration from 2.6.0 to '.PHPWG_VERSION.', '.get_elapsed_time($up_start, get_moment()).'] '.$upgrade_description.'\')
    116117;';
    117118  pwg_query($query);
Note: See TracChangeset for help on using the changeset viewer.