Merge branch 'MDL-80210' of https://github.com/timhunt/moodle
This commit is contained in:
@@ -67,5 +67,15 @@ function xmldb_quiz_upgrade($oldversion) {
|
||||
// Automatically generated Moodle v4.3.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
if ($oldversion < 2023112300) {
|
||||
|
||||
// Set the value for all existing rows to match the previous behaviour,
|
||||
// but only where users have not already set another value.
|
||||
$DB->set_field('quiz', 'reviewmaxmarks', 0x11110, ['reviewmaxmarks' => 0]);
|
||||
|
||||
// Quiz savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2023112300, 'quiz');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2023100900;
|
||||
$plugin->version = 2023112300;
|
||||
$plugin->requires = 2023100400;
|
||||
$plugin->component = 'mod_quiz';
|
||||
|
||||
Reference in New Issue
Block a user