← All tables

mdl_course_completions

MIGRATECourse completion history · 7 columns

Proposed target

course_completions

Migration rule

Preserve completion status, timecompleted and reaggregate flags

Verification required

Compare source completion reports before/after; do not recompute away historical state.

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
useridbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.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
timeenrolledbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
timestartedbigintNot null'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
timecompletedbigintNullableConvert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
reaggregatebigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference