Enable course completion for all the courses

Enable course completion for all the courses

by Dámaso Velázquez -
Number of replies: 1

Hello, 
i'd like to enable course completion for all the courses.

Could be possible to enable by SQL query?

Thank you. Best Regards.

Average of ratings: -
In reply to Dámaso Velázquez

Re: Enable course completion for all the courses

by Nawras GH -
The Following SQL query will enable the completion for all courses modules (lessons) 


UPDATE `mdl_course_modules` SET `completion`=2, `completionview`=1  WHERE 1;

but you need to enable the completion tracking for each course from course settings page.

*Previous SQL query will enable completion on view activity

**If you want to allow students to mark completion manually: use this query instead

UPDATE `mdl_course_modules` SET `completion`=1  WHERE 1;


Hope this will help you smile

Best regards

Nawras