From 38b18a142c2eab13bc32dafffe5312581c974751 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Fri, 12 Apr 2013 11:52:34 +0800 Subject: [PATCH] MDL-29877 Grades - Remove hardcoded prefix from upgrade step. --- lib/db/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 720e17bbdeb..f261807481a 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -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"; -- 2.43.0