← All tables

mdl_course_modules

MIGRATECourse activity instances · 24 columns

Proposed target

learning_activities

Migration rule

Map module type + instance reference + section + order + visibility

Verification required

Requires mdl_modules and activity-specific tables; confirm unsupported plugins and module IDs.

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
modulebigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
instancebigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.Schema-only inference
sectionbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
idnumbervarchar(100)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
addedbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
scoresmallintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
indentmediumintNot 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
visibleoncoursepagetinyint(1)Not null'1'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.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
groupmodesmallintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
groupingidbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
completiontinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
completiongradeitemnumberbigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
completionviewtinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
completionexpectedbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
completionpassgradetinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
showdescriptiontinyint(1)Not null'0'Transform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
availabilitylongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
deletioninprogresstinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
downloadcontenttinyint(1)Nullable'1'Transform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.High: verify semantics/relationship/security
langvarchar(30)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference