← All tables

mdl_enrol

MIGRATEEnrolment methods/config · 35 columns

Proposed target

enrolment_sources

Migration rule

Map method, course, status, role, dates and plugin config where required

Verification required

Some methods are config-only; do not migrate secrets or expired integration tokens.

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
enrolvarchar(20)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
statusbigintNot null'0'Map through explicit enum/boolean translation; retain source value and test edge cases.High: verify semantics/relationship/security
courseidbigintNot nullResolve 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
namevarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
enrolperiodbigintNullable'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
enrolstartdatebigintNullable'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
enrolenddatebigintNullable'0'Convert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
expirynotifytinyint(1)Nullable'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
expirythresholdbigintNullable'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
notifyalltinyint(1)Nullable'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
passwordvarchar(50)NullableEXCLUDE from app migration; credential/secret handling requires security review.High: verify semantics/relationship/security
costvarchar(20)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
currencyvarchar(3)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
roleidbigintNullable'0'Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
customint1bigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customint2bigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customint3bigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customint4bigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customint5bigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customint6bigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customint7bigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customint8bigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customchar1varchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customchar2varchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customchar3varchar(1333)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customdec1decimal(12,7)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customdec2decimal(12,7)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
customtext1longtextNullableTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
customtext2longtextNullableTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
customtext3longtextNullableTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
customtext4longtextNullableTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.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