Renamed table quiz_newest_states to question_sessions

This commit is contained in:
gustav_delius
2006-02-15 08:34:36 +00:00
parent 786187cdfd
commit 832d40420c
3 changed files with 10 additions and 1 deletions
+5
View File
@@ -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;
}
+4
View File
@@ -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;
}
+1 -1
View File
@@ -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)?