← All tables
mdl_role_context_levels
TRANSFORMAccess control / Moodle context hierarchy · 3 columnsProposed 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.
| Column | Type | Null | Default | Target mapping | Risk |
|---|---|---|---|---|---|
| id | bigint | Not null | Preserve as legacy source ID; generate target PK unless target accepts stable legacy key. | High: verify semantics/relationship/security | |
| roleid | bigint | Not null | Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs. | High: verify semantics/relationship/security | |
| contextlevel | bigint | Not null | Transform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references. | Schema-only inference |