Create a quiz through sql

Create a quiz through sql

על ידי Syed Irtaza Ali בתאריך
מספר תגובות: 2

I have created a quiz by entering relevant data in the following tables

mdl_quiz
mdl_course_modules
mdl_course_sections
mdl_question
mdl_question_answers
mdl_quiz_slots
mdl_grade_items

but the quiz is not appearing on the course page in the Topic

Any help on the missing table entry?



ממוצע דרוגים: -
בתגובה ל: Syed Irtaza Ali

Re: Create a quiz through sql

על ידי Tim Hunt בתאריך
תמונה של Core developers תמונה של Documentation writers תמונה של Particularly helpful Moodlers תמונה של Peer reviewers תמונה של Plugin developers
Clear caches?

I woud not do it that way. I would to it using the Moodle API functions. Likely to be more reliable and more future-proof.
בתגובה ל: Tim Hunt

Re: Create a quiz through sql

על ידי Syed Irtaza Ali בתאריך

Thanks Tim.

Purge All Caches worked!

I am trying to insert google forms quiz and the grade appears fine after insert in mdl_grade_grades

But the Course Total is not adding up the inserted grade. Do I have to manually update it? Any help where this CourseTotal column can be found