function performance_update_6001 in Performance Logging and Monitoring 6.2
Same name and namespace in other branches
- 6 performance.install \performance_update_6001()
Harmonize notations for milliseconds to "ms".
File
- ./
performance.install, line 234 - Install and update for Performance Logging
Code
function performance_update_6001() {
$int_field = array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'disp-width' => '11',
);
$ret = array();
db_change_field($ret, 'performance_summary', 'millisecs_max', 'ms_max', $int_field);
db_change_field($ret, 'performance_summary', 'millisecs_avg', 'ms_avg', $int_field);
db_change_field($ret, 'performance_detail', 'millisecs', 'ms', $int_field);
// We don't have a cache update method, so it's better to clear it
if (function_exists('apc_fetch')) {
apc_clear_cache('user');
}
return $ret;
}