MDL-29877 Grades - Remove hardcoded prefix from upgrade step.

This commit is contained in:
Damyon Wiese
2013-04-12 11:52:34 +08:00
parent 726e41abaa
commit 38b18a142c
+1 -1
View 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";