a problem with modinfo field in mdl_course database table

a problem with modinfo field in mdl_course database table

Lukasz Czyzewski - келді
Number of replies: 4
Hello to everyone! Күлкі

I'm writing a piece of software that will copy course content from one instance of Moodle to another.

Everything is pretty straightforward except for 'modinfo' field in the 'mdl_course' table.

Can anyone provide me with some sort of explanation about this field?

How it is build?

What is its exact purpose?

Thank you!

Best regards,
Lucas (lucas.7bd@gmail.com).
In reply to Lukasz Czyzewski

Re: a problem with modinfo field in mdl_course database table

Tim Hunt - келді
Core developers қатысушының суреті Documentation writers қатысушының суреті Particularly helpful Moodlers қатысушының суреті Peer reviewers қатысушының суреті Plugin developers қатысушының суреті
Its a cache, for performance reasons. Just put nothing there, and it should be rebuilt on the fly.
In reply to Tim Hunt

Re: a problem with modinfo field in mdl_course database table

Lukasz Czyzewski - келді
Thank you for your answer!

My first guess about modinfo field was that it contains information about order of modules in a course.

Do you know where moodle stores this kind of data?

Best regards,
Lukasz Cz.
In reply to Lukasz Czyzewski

Re: a problem with modinfo field in mdl_course database table

Przemyslaw Stencel - келді
...information about order of modules in a course. Do you know where moodle stores this kind of data?

In the "sequence" field of the "mdl_course_sections" table.

Cheers,
Przemek