Permalink
Browse files

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

not report an error during upgrade
  • Loading branch information...
1 parent ccd218e commit dbfc642a87b859d8a65ee193890c7d7fb0d3461e martinlanghoff committed May 17, 2006
Showing with 6 additions and 1 deletion.
  1. +5 −0 mod/forum/db/postgres7.php
  2. +1 −1 mod/forum/version.php
@@ -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;
}
View
@@ -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;

0 comments on commit dbfc642

Please sign in to comment.