modinfo nullable and without default.

This commit is contained in:
stronk7
2006-08-31 19:39:18 +00:00
parent 79c63c4415
commit 99215f2c6f
4 changed files with 11 additions and 2 deletions
+5
View File
@@ -1764,6 +1764,11 @@ function main_upgrade($oldversion=0) {
table_column('capabilities', '', 'riskbitmask', 'INTEGER', '10', 'unsigned', '0', 'not null', '');
}
if ($oldversion < 2006083100) {
execute_sql("ALTER TABLE {$CFG->prefix}course ALTER COLUMN modinfo DROP NOT NULL");
execute_sql("ALTER TABLE {$CFG->prefix}course ALTER COLUMN modinfo DROP DEFAULT");
}
return $result;
}