Added a format field to the event table

This commit is contained in:
moodler
2004-04-27 16:41:16 +00:00
parent 86a4eb2bd4
commit cda21d485c
5 changed files with 13 additions and 3 deletions
+5 -1
View File
@@ -475,7 +475,7 @@ function main_upgrade($oldversion=0) {
rebuild_course_cache();
}
if ($oldversion < 2004042700) {
if ($oldversion < 2004042700) { /// Increase size of lang fields
table_column("user", "lang", "lang", "varchar", "10", "", "en");
table_column("groups", "lang", "lang", "varchar", "10", "", "");
table_column("course", "lang", "lang", "varchar", "10", "", "");
@@ -485,6 +485,10 @@ function main_upgrade($oldversion=0) {
table_column("course", "", "hiddentopics", "integer", "1", "unsigned", "0", "not null", "visible");
}
if ($oldversion < 2004042702) { /// Add a format field for the description
table_column("event", "", "format", "integer", "4", "unsigned", "0", "not null", "description");
}
return $result;
}