← All tables

mdl_user_info_field

MIGRATEIdentity / profile / access / user extension · 20 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
shortnamevarchar(255)Not null'shortname'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
namelongtextNot nullMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
datatypevarchar(255)Not null''Transform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.High: verify semantics/relationship/security
descriptionlongtextNullableTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
descriptionformattinyintNot null'0'Transform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
categoryidbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
sortorderbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
requiredtinyintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
lockedtinyintNot null'0'Map through explicit enum/boolean translation; retain source value and test edge cases.Schema-only inference
visiblesmallintNot null'0'Map through explicit enum/boolean translation; retain source value and test edge cases.Schema-only inference
forceuniquetinyintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
signuptinyintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
defaultdatalongtextNullableTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.High: verify semantics/relationship/security
defaultdataformattinyintNot null'0'Transform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.High: verify semantics/relationship/security
param1longtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
param2longtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
param3longtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
param4longtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
param5longtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference