Permalink
Browse files

Update log_display to use postgres friendly concat functions for firs…

…tname lastname (holding off version bump for a day or two for more db changes)
  • Loading branch information...
1 parent 86fad68 commit 7435a34081463043e9b78eb59c3ece6e70ea94dd mjollnir_ committed Nov 23, 2004
Showing with 6 additions and 1 deletion.
  1. +6 −1 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;
}

0 comments on commit 7435a34

Please sign in to comment.