Skip to content

Instantly share code, notes, and snippets.

@mikebuchanon
Created July 20, 2012 18:06
Show Gist options
  • Save mikebuchanon/3152318 to your computer and use it in GitHub Desktop.
Save mikebuchanon/3152318 to your computer and use it in GitHub Desktop.
update assignments and grades in moodle
--update grades for all assignments for all courses in a given category
update mdl_assignment --update assignment object (front end)
set grade = 100
where course in
(
'34','32','66','65','23','67' --list of courses
);
update mdl_grade_items --update gradebook (back end)
set grademax=100
where itemmodule='assignment' AND
courseid IN
(
'34','32','66','65','23','67'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment