← All tables

mdl_role

TRANSFORMAccess control / Moodle context hierarchy · 6 columns

Proposed target

Target RBAC policies + migration context crosswalk

Migration rule

Translate Moodle roles, capabilities and context inheritance to target permissions

Verification required

Moodle capability inheritance differs from target RBAC; security design and authorization tests required

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
namevarchar(255)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
shortnamevarchar(100)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
descriptionlongtextNot nullTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
sortorderbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
archetypevarchar(30)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference