I am currently using 2.2.6 and I am trying to upgrade to 2.6 but I am having some problems. I imported my production database through phpmyadmin and setup a directory with the 2.6 files so that I could test everything first. Everything goes smooth until I hit this error which stops the upgrade;
INSERT INTO mdl_quiz_reports (name,displayorder,capability) VALUES(?,?,?)
[array (
0 => 'grading',
1 => '6000',
2 => 'mod/quiz:grade',
)]
Error code: dmlwriteexception
- 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 39 of \mod\quiz\report\grading\db\install.php: call to mysqli_native_moodle_database->insert_record()
- line 486 of \lib\upgradelib.php: call to xmldb_quiz_grading_install()
- line 1580 of \lib\upgradelib.php: call to upgrade_plugins()
- line 431 of \admin\index.php: call to upgrade_noncore()
What can I do to fix this?