Renamed table quiz_newest_states to question_sessions
This commit is contained in:
@@ -907,6 +907,11 @@ function quiz_upgrade($oldversion) {
|
||||
// convert sequence field to text to accomodate very long sequences, see bug 4257
|
||||
table_column('quiz_multianswers', 'sequence', 'sequence', 'text', '', '', '', 'not null', 'question');
|
||||
}
|
||||
|
||||
if ($oldversion < 200602100) {
|
||||
execute_sql("ALTER TABLE {$CFG->prefix}quiz_newest_states RENAME {$CFG->prefix}question_sessions", false);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1005,6 +1005,10 @@ function quiz_upgrade($oldversion) {
|
||||
modify_database('','CREATE UNIQUE INDEX prefix_quiz_attempts_uniqueid_uk ON prefix_quiz_attempts (uniqueid);');
|
||||
}
|
||||
|
||||
if ($oldversion < 200602100) {
|
||||
execute_sql("ALTER TABLE {$CFG->prefix}quiz_newest_states RENAME TO {$CFG->prefix}question_sessions", false);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->version = 2006021400; // The (date) version of this module
|
||||
$module->version = 2006021500; // The (date) version of this module
|
||||
$module->requires = 2005021600; // Requires this Moodle version
|
||||
$module->cron = 0; // How often should cron check this module (seconds)?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user