MDL-29877 Grades - Remove hardcoded prefix from upgrade step.
authorDamyon Wiese <damyon@moodle.com>
Fri, 12 Apr 2013 03:52:34 +0000 (11:52 +0800)
committerDamyon Wiese <damyon@moodle.com>
Fri, 12 Apr 2013 03:52:34 +0000 (11:52 +0800)
lib/db/upgrade.php

index 720e17b..f261807 100644 (file)
@@ -1144,7 +1144,7 @@ function xmldb_main_upgrade($oldversion) {
 
     if ($oldversion < 2012062506.06) {
         // MDL-29877 Some bad restores created grade items with no category information.
-        $sql = "UPDATE mdl_grade_items
+        $sql = "UPDATE {grade_items}
                    SET categoryid = courseid
                  WHERE itemtype <> 'course' and itemtype <> 'category'
                        AND categoryid IS NULL";