]> git.mjollnir.org Git - moodle.git/commitdiff
moodle16cleanup: mod/forum correctly dropping the constraint, so it does
authormartinlanghoff <martinlanghoff>
Wed, 17 May 2006 06:42:28 +0000 (06:42 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 17 May 2006 06:42:28 +0000 (06:42 +0000)
not report an error during upgrade

mod/forum/db/postgres7.php
mod/forum/version.php

index 22c35323225ecab470e06c5eaf6c823ef3a879fd..dab254bf7abae240b6d3d7b34b7ce26e3beab1c7 100644 (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;
 
 }
index ce9a521651d8f4eac3b3b294dc2821b0c1990750..830cb1b55faba8b26dd8a6c1ef6d547cc7ab7f4d 100644 (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;