From 7435a34081463043e9b78eb59c3ece6e70ea94dd Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Tue, 23 Nov 2004 03:52:51 +0000 Subject: [PATCH] Update log_display to use postgres friendly concat functions for firstname lastname (holding off version bump for a day or two for more db changes) --- lib/db/postgres7.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index 931277432cb..d8d3637372c 100644 --- a/lib/db/postgres7.php +++ b/lib/db/postgres7.php @@ -662,7 +662,12 @@ function main_upgrade($oldversion=0) { set_field('modules', 'version', 2004080932, 'name', 'glossary'); } } - + + if ($oldversion < 2004083130) { // update log display to use correct postgres friendly sql + execute_sql("UPDATE {$CFG->prefix}log_display SET field='firstname||\' \'||lastname' WHERE module='user' AND action='view' AND mtable='user'"); + execute_sql("UPDATE {$CFG->prefix}log_display SET field='firstname||\' \'||lastname' WHERE module='course' AND action='user report' AND mtable='user'"); + } + return $result; }