mirror of
https://github.com/moodle/moodle.git
synced 2025-02-06 08:10:11 +01:00
2c0d657437
so chatters appear in the online users block so Tom is happy. :-) Seriously though, it's good to have talking events in the log.
29 lines
737 B
PHP
29 lines
737 B
PHP
<?PHP // $Id$
|
|
|
|
function chat_upgrade($oldversion) {
|
|
// This function does anything necessary to upgrade
|
|
// older versions to match current functionality
|
|
|
|
global $CFG;
|
|
|
|
if ($oldversion < 2004022300) {
|
|
table_column("chat_messages", "", "groupid", "integer", "10", "unsigned", "0", "not null", "userid");
|
|
table_column("chat_users", "", "groupid", "integer", "10", "unsigned", "0", "not null", "userid");
|
|
}
|
|
|
|
if ($oldversion < 2004042500) {
|
|
include_once("$CFG->dirroot/mod/chat/lib.php");
|
|
chat_refresh_events();
|
|
}
|
|
|
|
if ($oldversion < 2004043000) {
|
|
modify_database("", "INSERT INTO prefix_log_display VALUES ('chat', 'talk', 'chat', 'name');");
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
|
|
?>
|
|
|