mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 08:11:26 +01:00
fcd3a1ee42
as well as rotating weekly or daily period. Also some small fixes.
32 lines
889 B
PHP
32 lines
889 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 < 2003072100) {
|
|
modify_database ("", " INSERT INTO prefix_log_display VALUES ('chat', 'report', 'chat', 'name'); ");
|
|
}
|
|
|
|
if ($oldversion < 2003072101) {
|
|
table_column("chat", "messages", "keepdays", "integer", "10", "unsigned", "0", "not null");
|
|
}
|
|
|
|
if ($oldversion < 2003072102) {
|
|
table_column("chat", "", "studentlogs", "integer", "4", "unsigned", "0", "not null", "keepdays");
|
|
}
|
|
|
|
if ($oldversion < 2003072500) {
|
|
table_column("chat", "", "chattime", "integer", "10", "unsigned", "0", "not null", "studentlogs");
|
|
table_column("chat", "", "schedule", "integer", "4", "", "0", "not null", "studentlogs");
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
|
|
?>
|
|
|