← All tables
mdl_grade_grades
MIGRATEGrade results · 23 columnsProposed target
grades
Migration rule
Preserve user, grade item, raw/final grade, feedback, grader and timestamps
Verification required
Map scale grades and null/overridden/excluded states; reconcile against Moodle gradebook exports.
Tracking
Sign in to update status, owner and notes.
| Column | Type | Null | Default | Target mapping | Risk |
|---|---|---|---|---|---|
| id | bigint | Not null | Preserve as legacy source ID; generate target PK unless target accepts stable legacy key. | High: verify semantics/relationship/security | |
| itemid | bigint | Not null | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security | |
| userid | bigint | Not null | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security | |
| rawgrade | decimal(10,5) | Nullable | Map through explicit enum/boolean translation; retain source value and test edge cases. | Schema-only inference | |
| rawgrademax | decimal(10,5) | Not null | '100.00000' | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |
| rawgrademin | decimal(10,5) | Not null | '0.00000' | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |
| rawscaleid | bigint | Nullable | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security | |
| usermodified | bigint | Nullable | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference | |
| finalgrade | decimal(10,5) | Nullable | Map through explicit enum/boolean translation; retain source value and test edge cases. | Schema-only inference | |
| hidden | bigint | Not null | '0' | Map through explicit enum/boolean translation; retain source value and test edge cases. | Schema-only inference |
| locked | bigint | Not null | '0' | Map through explicit enum/boolean translation; retain source value and test edge cases. | Schema-only inference |
| locktime | bigint | Not null | '0' | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |
| exported | bigint | Not null | '0' | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |
| overridden | bigint | Not null | '0' | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |
| excluded | bigint | Not null | '0' | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |
| feedback | longtext | Nullable | Transform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references. | Schema-only inference | |
| feedbackformat | bigint | Not null | '0' | Transform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references. | Schema-only inference |
| information | longtext | Nullable | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference | |
| informationformat | bigint | Not null | '0' | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |
| timecreated | bigint | Nullable | Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics. | Schema-only inference | |
| timemodified | bigint | Nullable | Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics. | Schema-only inference | |
| aggregationstatus | varchar(10) | Not null | 'unknown' | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |
| aggregationweight | decimal(10,5) | Nullable | Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning. | Schema-only inference |