At the moment it does custom SQL in quiz_delete_instance and quiz_reset_userdata, which is not guaranteed to be correct if questionlib.php changes.
However, for efficiency reasons, we probably need to make a question_delete_attempts function that can delete multiple attempts at once.
- will help resolve
-
MDL-17623 Summary of Violated Foreign Key Constraints from 700+ Moodles
-
- Closed
-