← All tables

mdl_user_addresses

MIGRATEIdentity / profile / access / user extension · 16 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
typetinyintNullable'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
addressline1varchar(500)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
addressline2varchar(500)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
countryidbigintNot null'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
stateidbigintNullable'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
districtidbigintNullable'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
cityidbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
pincodevarchar(12)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
landmarkvarchar(150)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
longitudevarchar(50)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
latitudevarchar(50)NullableMap 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
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
deletedtinyint(1)Nullable'0'Map through explicit enum/boolean translation; retain source value and test edge cases.Schema-only inference