← All tables

mdl_grade_items

MIGRATEGradebook item definitions · 31 columns

Proposed target

grade_items

Migration rule

Preserve course, activity linkage, item type, scale, max/min grade and aggregation settings

Verification required

Verify calculated/manual grades, scales, hidden/locked flags and item 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
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
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
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
weightoverridetinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
timecreatedbigintNullableConvert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
timemodifiedbigintNullableConvert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference