New added column :
'sis_periodid'=> new external_value(PARAM_INT,'application course period id',VALUE_OPTIONAL)
Used code:
$data2->sis_periodid= 2;
$data2->id=10;
$course1=$DB->update_record('course', $data2);
Output:
stdClass Object ( [exception] => coding_exception [errorcode] => codingerror [message] => Coding error detected, it must be fixed by a programmer: moodle_database::update_record_raw() no fields found. )
Please help me, I have added `sis_periodid` field to course table but getting the above error.