← All tables

mdl_sessions

EXCLUDEWeb sessions · 9 columns

Proposed target

None; force reauthentication via IdP

Migration rule

Session state is ephemeral and invalid across app/platform boundary

Verification required

Invalidate source sessions at cutover; confirm SSO session lifetime and logout behavior.

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
statebigintNot null'0'Map through explicit enum/boolean translation; retain source value and test edge cases.High: verify semantics/relationship/security
sidvarchar(128)Not null''Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.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
sessdatalongtextNullableTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.High: verify semantics/relationship/security
timecreatedbigintNot nullConvert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
timemodifiedbigintNot nullConvert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
firstipvarchar(45)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
lastipvarchar(45)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference