Permalink
Browse files

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

  • Loading branch information...
1 parent 726e41a commit 38b18a142c2eab13bc32dafffe5312581c974751 @damyon damyon committed Apr 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/db/upgrade.php
View
@@ -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";

0 comments on commit 38b18a1

Please sign in to comment.