moodle16cleanup: mod/forum correctly dropping the constraint, so it does

not report an error during upgrade
This commit is contained in:
martinlanghoff
2006-05-17 06:25:20 +00:00
parent 7832d94156
commit f184d1610b
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -171,6 +171,11 @@ function forum_upgrade($oldversion) {
table_column('forum_posts','','mailnow','integer');
}
if ($oldversion < 2006011701) {
execute_sql("ALTER TABLE {$CFG->prefix}forum DROP CONSTRAINT {$CFG->prefix}forum_type_check");
}
return true;
}
+1 -1
View File
@@ -5,7 +5,7 @@
// This fragment is called by /admin/index.php
////////////////////////////////////////////////////////////////////////////////
$module->version = 2006011700;
$module->version = 2006011701;
$module->requires = 2005031000; // Requires this Moodle version
$module->cron = 60;