Moodle DB Schema Diff: 5.1 → 5.2

Data Pages

For tables that have rows inserted during Moodle installation (via db/install.php), the SchemaSpy schema page for that table includes a "View install data" link. The link points to a generated HTML page (located in tables/data/<tablename>.html under the SchemaSpy output directory) that lists every row inserted at install time. Each data page includes a back-link to its parent schema table page.

Tables with install data pages (54):

Tables Added in 5.2 (3)

assign_allocated_marker

One or more teachers allocated to mark individual submissions

columntypenullable
idBIGINT(19)NOT NULL
studentBIGINT(19)NOT NULL
assignmentBIGINT(19)NOT NULL
markerBIGINT(19)NOT NULL

assign_mark

Marks from multiple markers for a single submission

columntypenullable
idBIGINT(19)NOT NULL
assignmentBIGINT(19)NOT NULL
gradeidBIGINT(19)NOT NULL
timecreatedBIGINT(19)NOT NULL
timemodifiedBIGINT(19)NOT NULL
markerBIGINT(19)NOT NULL
markDECIMAL(10,5)NULL
workflowstateVARCHAR(20)NULL
These two tables together support multi-marker assignment grading introduced in 5.2.

data

All database activities (mod_data)

columntypenullable
idBIGINT(19)NOT NULL
courseBIGINT(19)NOT NULL
nameVARCHAR(1333)NOT NULL
introLONGTEXTNOT NULL
introformatSMALLINT(5)NOT NULL
commentsSMALLINT(5)NOT NULL
timeavailablefromBIGINT(19)NOT NULL
timeavailabletoBIGINT(19)NOT NULL
timeviewfromBIGINT(19)NOT NULL
timeviewtoBIGINT(19)NOT NULL
requiredentriesINT(10)NOT NULL
requiredentriestoviewINT(10)NOT NULL
maxentriesINT(10)NOT NULL
rssarticlesSMALLINT(5)NOT NULL
singletemplateLONGTEXTNULL
listtemplateLONGTEXTNULL
listtemplateheaderLONGTEXTNULL
listtemplatefooterLONGTEXTNULL
addtemplateLONGTEXTNULL
rsstemplateLONGTEXTNULL
rsstitletemplateLONGTEXTNULL
csstemplateLONGTEXTNULL
jstemplateLONGTEXTNULL
asearchtemplateLONGTEXTNULL
approvalSMALLINT(5)NOT NULL
manageapprovedSMALLINT(5)NOT NULL
scaleBIGINT(19)NOT NULL
assessedBIGINT(19)NOT NULL
assesstimestartBIGINT(19)NOT NULL
assesstimefinishBIGINT(19)NOT NULL
defaultsortBIGINT(19)NOT NULL
defaultsortdirSMALLINT(5)NOT NULL
editanySMALLINT(5)NOT NULL
notificationBIGINT(19)NOT NULL
timemodifiedBIGINT(19)NOT NULL
configLONGTEXTNULL
completionentriesBIGINT(19)NULL

Tables Removed in 5.2 (1)

moodlenet_share_progress

Records MoodleNet share progress — MoodleNet integration dropped in 5.2.

columntypenullable
idBIGINT(19)NOT NULL
typeTINYINT(3)NOT NULL
courseidBIGINT(19)NOT NULL
cmidBIGINT(19)NULL
useridBIGINT(19)NOT NULL
timecreatedBIGINT(19)NOT NULL
resourceurlVARCHAR(255)NULL
statusTINYINT(3)NULL

Total tables: 494 (5.1) → 496 (5.2)