← All tables

mdl_course_productsettings

MIGRATECore learning content / activity / progress / assessment · 32 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
typevarchar(10)Not null''Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
mode_of_learningvarchar(15)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
courseidbigintNullableResolve to target foreign key via source-ID crosswalk; do not assume numeric IDs match target IDs.High: verify semantics/relationship/security
course_thumbnailbigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
course_videobigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
original_pricevarchar(20)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
discounted_pricevarchar(20)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
course_partnerbigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
tax_applicabletinyint(1)Nullable'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
languagevarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
taxdetailsvarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
currencydetailsvarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
targetedlearnervarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
coursedurationbigintNullableMap 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
duration_valuedecimal(10,2)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
difficulty_levelvarchar(50)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
tagvarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
certificatetinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
skillsgainedvarchar(255)NullableMap 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
learning_outcomeslongtextNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
professor_namevarchar(255)NullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
professor_descriptionlongtextNullableTransform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
professor_picturebigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
timecreatedbigintNullableConvert Unix epoch to UTC timestamp; verify 0/null sentinel and date semantics.Schema-only inference
aiupdatedtinyint(1)Nullable'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
generatesummarytinyint(1)Nullable'0'Transform text/JSON/HTML as appropriate; sanitize and rewrite embedded Moodle URLs/file references.Schema-only inference
createdbybigintNullableMap same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
approvalbigintNot null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference
sell_as_bundletinyint(1)Not null'0'Map same-named field where semantics match; confirm target type, nullability, defaults and business meaning.Schema-only inference