-
Bug
-
Resolution: Not a bug
-
Minor
-
None
-
2.6.1
-
None
-
MOODLE_26_STABLE
I have a problem with the Assignment Upgrade Helper (Multiple assignments). It shows the following error.
The Upgrade from 1.9 to 2.2 went fine, and from the latter to 2.6 was successful. But when trying to upgrade the assignments, I was shown the error.
Would you mind telling me what to do?
Upgrade multiple assignments
Error writing to database
More information about this error
Debug info: Field 'delay' doesn't have a default value
INSERT INTO mdl_course_modules (course,module,instance,visible,section,score,indent,groupmode,groupingid,groupmembersonly,completion,completiongradeitemnumber,completionview,completionexpected,availablefrom,availableuntil,showavailability,showdescription,added) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => '7',
1 => '39',
2 => '8',
3 => '1',
4 => '58',
5 => '0',
6 => '1',
7 => '0',
8 => '0',
9 => '0',
10 => '0',
11 => NULL,
12 => '0',
13 => '0',
14 => '0',
15 => '0',
16 => '0',
17 => '0',
18 => 1386693712,
)]
Error code: dmlwriteexception
Stack trace:
line 444 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 1080 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1122 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 1433 of /course/lib.php: call to mysqli_native_moodle_database->insert_record()
line 400 of /mod/assign/upgradelib.php: call to add_course_module()
line 118 of /mod/assign/upgradelib.php: call to assign_upgrade_manager->duplicate_course_module()
line 209 of /admin/tool/assignmentupgrade/locallib.php: call to assign_upgrade_manager->upgrade_assignment()
line 64 of /admin/tool/assignmentupgrade/batchupgrade.php: call to tool_assignmentupgrade_upgrade_assignment()