moodle16cleanup: mod/forum correctly dropping the constraint, so it does
not report an error during upgrade
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user