← All tables

mdl_course_sections

MIGRATECourse structure · 12 columns

Proposed target

course_sections / course_units

Migration rule

Preserve course_id, section number, name, summary, visibility and ordering

Verification required

Section content may be HTML with embedded plugin/file links; inspect format-specific behavior.

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
coursebigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
sectionbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
namevarchar(255)NullableMap 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
sequencelongtextNullableMap 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
availabilitylongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
componentvarchar(100)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
itemidbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
timemodifiedbigintNot null'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference