summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhalid Baheyeldin2009-12-25 22:00:57 (GMT)
committer Khalid Baheyeldin2009-12-25 22:00:57 (GMT)
commit98506466d8b20d50cb74e802ae9db6198b763a06 (patch)
treedc5ae6d23ca10cd492b0c5defbb86fcea82c1bc3
parent1b035f4ee229da58ebb049b25cfa07eacb695c61 (diff)
#303804 followup by carlos8f, change column names in the database to shorter ones
-rw-r--r--performance/performance.install10
1 files changed, 4 insertions, 6 deletions
diff --git a/performance/performance.install b/performance/performance.install
index 224cdde..cd2ef3a 100644
--- a/performance/performance.install
+++ b/performance/performance.install
@@ -134,14 +134,12 @@ function performance_update_2() {
function performance_update_7001() {
$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);
+ db_change_field('performance_summary', 'millisecs_max', 'ms_max', $int_field);
+ db_change_field('performance_summary', 'millisecs_avg', 'ms_avg', $int_field);
+ db_change_field('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')) {
+ if (function_exists('apc_fetch')) {
apc_clear_cache('user');
}
- return $ret;
}