]> git.mjollnir.org Git - moodle.git/commitdiff
And we don't need to call assignment_upgrade_submodules()
authorstronk7 <stronk7>
Wed, 29 Aug 2007 14:50:41 +0000 (14:50 +0000)
committerstronk7 <stronk7>
Wed, 29 Aug 2007 14:50:41 +0000 (14:50 +0000)
from the update scripts any more. The standard plugin
architecture for modules support that. MDL-11029

mod/assignment/db/mysql.php
mod/assignment/db/postgres7.php

index 3cd8d5eae0994d3601c94370a046107cbaab8b7e..632e6574ad0533dda676f135f5c4c1571efce826 100644 (file)
@@ -168,11 +168,6 @@ function assignment_upgrade($oldversion) {
         table_column('assignment_submissions', 'comment', 'submissioncomment', 'text', '', '', '');
     }
 
-
-/// These lines ALWAYS need to be here at the end of this file.  Don't mess with them. :-)
-    include_once("$CFG->dirroot/mod/assignment/lib.php");
-    assignment_upgrade_submodules();
-
     //////  DO NOT ADD NEW THINGS HERE!!  USE upgrade.php and the lib/ddllib.php functions.
 
     return true;
index e16e9068a5e453399e5437b20f1ff32a707dc7d4..f00034372bc173880a51034c5d9dcec40d2b70ea 100644 (file)
@@ -174,11 +174,7 @@ function assignment_upgrade($oldversion) {
 
     if ($oldversion < 2006092100) {
         table_column('assignment_submissions', 'comment', 'submissioncomment', 'text', '', '', '');
-    } 
-
-/// These lines ALWAYS need to be here at the end of this file.  Don't mess with them. :-)
-    include_once("$CFG->dirroot/mod/assignment/lib.php");
-    assignment_upgrade_submodules();
+    }
 
     //////  DO NOT ADD NEW THINGS HERE!!  USE upgrade.php and the lib/ddllib.php functions.