← All tables

mdl_user_custom_fields

MIGRATEIdentity / profile / access / user extension · 27 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
useridbigintNot nullResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
documentresumebigintNullable'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
videoresumebigintNullable'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
generatedresumebigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
aspiredjobrolebigintNullable'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
usermodifiedbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
linkedinvarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
facebookvarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
twittervarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
githubvarchar(255)NullableMap 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
gendertinyintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
profilecompletionpercentagedecimal(5,2)Not null'0.00'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
totalworkexperiencebigintNot null'0'Map 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
departmentidbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
programidbigintNot 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
userdepartmentvarchar(100)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
userprogramvarchar(100)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
userlocationvarchar(100)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
learneruniversityvarchar(100)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
youtubevarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
instagramvarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
userstreamvarchar(100)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference