Fixes to two database fields log_display(table -> mtable) and

user_teachers(authority from varchar -> int)
This commit is contained in:
martin
2002-08-04 02:08:43 +00:00
parent 9368336bae
commit 565f7a9504
3 changed files with 11 additions and 6 deletions
+6 -1
View File
@@ -17,7 +17,7 @@
// If there's something it cannot do itself, it
// will tell you what you need to do.
$version = 2002080200;
$version = 2002080300;
function upgrade_moodle($oldversion=0) {
@@ -42,6 +42,11 @@ function upgrade_moodle($oldversion=0) {
execute_sql(" ALTER TABLE `modules` DROP `search` ");
}
if ($oldversion < 2002080300) {
execute_sql(" ALTER TABLE `log_display` CHANGE `table` `mtable` VARCHAR( 20 ) NOT NULL ");
execute_sql(" ALTER TABLE `user_teachers` CHANGE `authority` `authority` TINYINT( 3 ) DEFAULT '3' NOT NULL ");
}
return true;
}