mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-29877 Grades - Remove hardcoded prefix from upgrade steps
This commit is contained in:
parent
42f563f65e
commit
c7ee04bd64
@ -1992,7 +1992,7 @@ function xmldb_main_upgrade($oldversion) {
|
||||
|
||||
if ($oldversion < 2013041200.00) {
|
||||
// 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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user