← All tables

mdl_log_queries

ARCHIVELogs / analytics / technical history · 9 columns

Proposed target

Archive compressed; selectively transform required reporting aggregates

Migration rule

Usually not required for core LMS runtime

Verification required

Identify compliance/audit and analytics use cases before exclusion

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
qtypemediumintNot nullMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
sqltextlongtextNot nullTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
sqlparamslongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
errormediumintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
infolongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
backtracelongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
exectimedecimal(10,5)Not nullMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
timeloggedbigintNot nullMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference