← All tables

mdl_grade_items_history

MIGRATECore learning content / activity / progress / assessment · 34 columns

Proposed target

Transform into target course, module, attempt, grade, completion, credential and content models

Migration rule

Preserve history and relationships; retain original IDs in legacy_id fields

Verification required

Plugin behavior, attempt state, grading rules, file references and completion logic require application-level verification

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
actionbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
oldidbigintNot nullResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
sourcevarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
timemodifiedbigintNullableConvert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
loggeduserbigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
courseidbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
categoryidbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
itemnamevarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
itemtypevarchar(30)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
itemmodulevarchar(30)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
iteminstancebigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
itemnumberbigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
iteminfolongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
idnumbervarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
calculationlongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
gradetypesmallintNot null'1'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
grademaxdecimal(10,5)Not null'100.00000'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
grademindecimal(10,5)Not null'0.00000'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
scaleidbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
outcomeidbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
gradepassdecimal(10,5)Not null'0.00000'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
multfactordecimal(10,5)Not null'1.00000'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
plusfactordecimal(10,5)Not null'0.00000'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
aggregationcoefdecimal(10,5)Not null'0.00000'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
aggregationcoef2decimal(10,5)Not null'0.00000'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
sortorderbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
hiddenbigintNot null'0'Map through explicit enum/boolean translation; retain source value and test edge cases.Schema-only inference
lockedbigintNot null'0'Map through explicit enum/boolean translation; retain source value and test edge cases.Schema-only inference
locktimebigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
needsupdatebigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
displaybigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
decimalstinyint(1)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
weightoverridetinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference