← All tables

mdl_question

MIGRATEQuestion bank items · 16 columns

Proposed target

assessment_questions

Migration rule

Preserve question identity, type, text, default mark, status and category linkage

Verification required

Question text may depend on qtype-specific option tables, embedded files and filters.

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
parentbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.Schema-only inference
namevarchar(255)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
questiontextlongtextNot nullTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
questiontextformattinyintNot null'0'Transform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
generalfeedbacklongtextNot nullTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
generalfeedbackformattinyintNot null'0'Transform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
defaultmarkdecimal(12,7)Not null'1.0000000'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
penaltydecimal(12,7)Not null'0.3333333'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
qtypevarchar(20)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
lengthbigintNot null'1'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
stampvarchar(255)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
timecreatedbigintNot null'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
timemodifiedbigintNot null'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
createdbybigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
modifiedbybigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference