Fixed duplicate in log_display, and improved installation

for non-English users
This commit is contained in:
moodler
2004-07-29 18:44:57 +00:00
parent 2eb68e6f6b
commit f28db22d06
6 changed files with 35 additions and 22 deletions
+8
View File
@@ -536,6 +536,14 @@ function main_upgrade($oldversion=0) {
table_column('course', '', 'enrolperiod', 'int', '10', 'unsigned', '0', 'not null', 'startdate');
}
if ($oldversion < 2004072901) { // Fixing error in schema
if ($record = get_record('log_display', 'module', 'course', 'action', 'update')) {
delete_records('log_display', 'module', 'course', 'action', 'update');
insert_record('log_display', $record, false, 'module');
}
}
return $result;
}