report XXXX actions added. Bug 5714.

(http://moodle.org/bugs/bug.php?op=show&bugid=5714)
This commit is contained in:
stronk7
2006-06-04 00:35:04 +00:00
parent fae3f45758
commit b02e4ee384
5 changed files with 29 additions and 1 deletions
+9
View File
@@ -1590,6 +1590,15 @@ function main_upgrade($oldversion=0) {
execute_sql("ALTER TABLE {$CFG->prefix}stats_user_monthly RENAME COLUMN writes TO statswrites", false);
}
// Adding some missing log actions
if ($oldversion < 2006050504) {
execute_sql("INSERT INTO {$CFG->prefix}log_display (module, action, mtable, field) VALUES ('course', 'report log', 'course', 'fullname')");
execute_sql("INSERT INTO {$CFG->prefix}log_display (module, action, mtable, field) VALUES ('course', 'report live', 'course', 'fullname')");
execute_sql("INSERT INTO {$CFG->prefix}log_display (module, action, mtable, field) VALUES ('course', 'report outline', 'course', 'fullname')");
execute_sql("INSERT INTO {$CFG->prefix}log_display (module, action, mtable, field) VALUES ('course', 'report participation', 'course', 'fullname')");
execute_sql("INSERT INTO {$CFG->prefix}log_display (module, action, mtable, field) VALUES ('course', 'report stats', 'course', 'fullname')");
}
return $result;
}