← All tables

mdl_course

MIGRATECourse catalogue · 37 columns

Proposed target

courses

Migration rule

Course identity, name, shortname, idnumber, category, visibility, dates and summary

Verification required

Confirm hidden/deleted courses, category hierarchy, course format, enrolment availability and custom course fields.

Tracking

Sign in to update status, owner and notes.

ColumnTypeNullDefaultTarget mappingRisk
idbigintNot nullPreserve as legacy source ID; generate target PK unless target accepts stable legacy key.High: verify semantics/relationship/security
categorybigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.Schema-only inference
sortorderbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
fullnamevarchar(254)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
shortnamevarchar(255)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
idnumbervarchar(100)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
summarylongtextNullableTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
summaryformattinyintNot null'0'Transform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
formatvarchar(21)Not null'topics'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
showgradestinyintNot null'1'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
newsitemsmediumintNot null'1'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
startdatebigintNot null'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
enddatebigintNot null'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
relativedatesmodetinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
markerbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
maxbytesbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
legacyfilessmallintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
showreportssmallintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
visibletinyint(1)Not null'1'Map through explicit enum/boolean translation; retain source value and test edge cases.Schema-only inference
visibleoldtinyint(1)Not null'1'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
downloadcontenttinyint(1)NullableTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.High: verify semantics/relationship/security
groupmodesmallintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
groupmodeforcesmallintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
defaultgroupingidbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
langvarchar(30)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
calendartypevarchar(30)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
themevarchar(50)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
timecreatedbigintNot null'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
timemodifiedbigintNot null'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
requestedtinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
enablecompletiontinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
completionnotifytinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
cacherevbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
originalcourseidbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
showactivitydatestinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
showcompletionconditionstinyint(1)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
pdfexportfontvarchar(50)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference