Enable Self-enrolment for all existing courses

Enable Self-enrolment for all existing courses

by Takalani Radali -
Number of replies: 2
I have a moodle LMS with existing courses that were setup without self-enrolment enabled. I can enable it one course at a time. This is not ideal as I have almost 100 course.

Is there a way to enable it on multiple courses at the same time?

Can I do this via MySQL query? I can't figure out which tables change when it's enabled/

Average of ratings: -
In reply to Takalani Radali

Re: Enable Self-enrolment for all existing courses

by Gregor McNish -
Picture of Particularly helpful Moodlers
Probably you can insert rows in mdl_enrol? -- the enrol field would be 'self'. Maybe set one up the way you want, then insert a copy of that row for every other courseid

The self enrolment plugin setting screen allows you to add it automatically to any new courses.
Average of ratings: Useful (1)
In reply to Gregor McNish

Re: Enable Self-enrolment for all existing courses

by Takalani Radali -
We ended up pulling out all courses without 'self' and manually setting them up.

Thanks for the input.