This the sql that checks who to unenrol:
SELECT ra.roleid, ra.userid, ra.contextid
FROM m_course c
INNER JOIN m_context cx ON cx.instanceid = c.id
INNER JOIN m_role_assignments ra ON ra.contextid = cx.id
WHERE cx.contextlevel = '50'
AND ra.timeend > 0
AND ra.timeend < '1305815055'
AND c.enrolperiod > 0
If the course setting for enrolment duration is 'unlimited' then the value is 0 and nobody will ever be unenroled.
Enrolment
Enrollment duration not kicking students out
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.