← All tables

mdl_local_course_bundles

MIGRATECore learning content / activity / progress / assessment · 31 columns

Proposed target

Transform into target course, module, attempt, grade, completion, credential and content models

Migration rule

Preserve history and relationships; retain original IDs in legacy_id fields

Verification required

Plugin behavior, attempt state, grading rules, file references and completion logic require application-level verification

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
bundle_titlevarchar(255)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
long_descriptionlongtextNullableTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
mode_of_learningvarchar(20)Not null'selfpaced'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
bundle_codevarchar(100)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
learning_outcomeslongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
targeted_learnerslongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
categoryvarchar(100)Not null''Resolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.Schema-only inference
bundle_thumbnailbigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
bundle_videobigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
currency_typelongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
course_typevarchar(10)Not null'free'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
original_pricedecimal(10,2)Nullable'0.00'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
discounted_pricedecimal(10,2)Nullable'0.00'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
tax_applicabletinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
tax_detailslongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
tax_percentagedecimal(5,2)Nullable'0.00'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
partnerbigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
bundle_languagevarchar(50)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
bundle_duration_valuemediumintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
bundle_duration_unitbigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
duration_namevarchar(11)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
difficulty_levelvarchar(20)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
includes_certificatetinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
skills_gainedlongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
course_benefitslongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
publish_bundletinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
timecreatedbigintNot nullConvert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
timemodifiedbigintNot nullConvert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
usercreatedbigintNot nullMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
usermodifiedbigintNot nullMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference