← All tables

mdl_role_context_levels

TRANSFORMAccess control / Moodle context hierarchy · 3 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
roleidbigintNot nullResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
contextlevelbigintNot nullTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference