Added a format field to the event table
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user