MDL-54797 course: Add indexed field to condition of delete query
MDL-54797 course: Add indexed field to condition of delete query

Deleting records from the course_completion_criteria table goes much
faster when we include the indexed course field in the delete query.

dilawar/moodle