← All tables

mdl_user_tempdata

MIGRATEIdentity / profile / access / user extension · 25 columns

Proposed target

Map to users, profiles, external_identity_links, memberships/enrolments as applicable

Migration rule

Preserve Moodle IDs in legacy_id; use immutable IdP subject for login identity

Verification required

Verify PII fields, custom profile semantics, deleted/suspended users, duplicate email and foreign keys

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
usertypevarchar(200)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
usernamevarchar(200)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
emailvarchar(200)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
firstnamevarchar(200)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
lastnamevarchar(200)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
phone1varchar(200)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
statuslongtextNullableMap through explicit enum/boolean translation; retain source value and test edge cases.High: verify semantics/relationship/security
passwordlongtextNullableEXCLUDE from app migration; credential/secret handling requires security review.High: verify semantics/relationship/security
useridbigintNot nullResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
university_namevarchar(150)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
school_namevarchar(150)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
classvarchar(11)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
sectionvarchar(11)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
parent_firstnamevarchar(151)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
parent_lastnamevarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
parent_emailvarchar(151)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
parent_phonevarchar(200)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
programvarchar(100)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
streamvarchar(100)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
universityidbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
joiningyearmediumintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
batchbigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
registration_numbervarchar(32)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
locationvarchar(150)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference