Moodle 4.0 DB Schema

Moodle 4.0 DB Schema

by Karishma Tiwari -
Number of replies: 5

Dear all,

where can I download the Moodle 4.0 DB Schema?
I did a google and even searched the below URL, I cant find it.

https://docs.moodle.org/dev/Database_Schema


Thanks!

Average of ratings: -
In reply to Karishma Tiwari

Re: Moodle 4.0 DB Schema

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I'm guessing that nobody has done the work yet. Moodle was first developed a long time ago and the schema has grown - there's no "official" version.
In reply to Howard Miller

Re: Moodle 4.0 DB Schema

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
The worlds most comprehensive* detailed and in-depth Moodle 4.0 schema documentation. Contains information not written to the database during installation and additional information not included in the source.
https://www.examulator.com/er/output/index.html

Scroll down for diagrams of relationships. I should probably update the wiki page that was referred to, as it is not obvious that the update for 4.0 has been created.

(*also possibly the only)
Average of ratings:Useful (1)
In reply to Marcus Green

Re: Moodle 4.0 DB Schema

by Karishma Tiwari -
Thanks, I did find this URL but couldnt find the DB schema.
THen I went to relationships, and as you mentioned, scrolled down, got it!



In reply to Karishma Tiwari

Re: Moodle 4.0 DB Schema

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I think I need some notes to tell people to scroll down as i suspect most people miss the diagrams, and the diagrams are probably my favourite bits.Glad you found it.
In reply to Marcus Green

Re: Moodle 4.0 DB Schema

by Karishma Tiwari -

I agree indeed.

Because as long as you are at the top part, there is no indication that there is anything below.

Average of ratings:Useful (1)