← All tables

mdl_files_reference

TRANSFORMFile metadata / content references · 5 columns

Proposed target

Move file binaries to object storage; transform metadata and ownership/context references

Migration rule

Moodle files use contenthash/context/component/filearea/itemid/pathnamehash semantics

Verification required

Need moodledata export and contenthash verification; SQL schema alone cannot reconstruct file bytes

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
repositoryidbigintNot nullResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
lastsyncbigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
referencelongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
referencehashvarchar(40)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference