// before any action that may take longer time to finish.
/**
- * @global moodle_database $DB
* @param int $oldversion
* @return bool
*/
// quiz savepoint reached
upgrade_mod_savepoint(true, 2010102000, 'quiz');
}
-
- if ($oldversion < 2010122300) {
+
+ if ($oldversion < 2011011400) {
// Fix quiz in the post table after upgrade from 1.9
$table = new xmldb_table('quiz');
$columns = $DB->get_columns('quiz');
}
}
- upgrade_mod_savepoint(true, 2010122300, 'quiz');
+ upgrade_mod_savepoint(true, 2011011400, 'quiz');
}
-
- if ($oldversion < 2010122301) {
+
+ if ($oldversion < 2011011401) {
// Fix quiz_attempts in the post table after upgrade from 1.9
$table = new xmldb_table('quiz_attempts');
$columns = $DB->get_columns('quiz_attempts');
}
}
- upgrade_mod_savepoint(true, 2010122301, 'quiz');
+ upgrade_mod_savepoint(true, 2011011401, 'quiz');
}
-
- if ($oldversion < 2010122302) {
+
+ if ($oldversion < 2011011402) {
// Fix quiz_feedback in the post table after upgrade from 1.9
$table = new xmldb_table('quiz_feedback');
$columns = $DB->get_columns('quiz_feedback');
$dbman->change_field_default($table, $field);
}
}
-
- upgrade_mod_savepoint(true, 2010122302, 'quiz');
+
+ upgrade_mod_savepoint(true, 2011011402, 'quiz');
}
-
- if ($oldversion < 2010122303) {
+
+ if ($oldversion < 2011011403) {
// Fix quiz_grades in the post table after upgrade from 1.9
$table = new xmldb_table('quiz_grades');
$columns = $DB->get_columns('quiz_grades');
}
}
- upgrade_mod_savepoint(true, 2010122303, 'quiz');
+ upgrade_mod_savepoint(true, 2011011403, 'quiz');
}
-
- if ($oldversion < 2010122304) {
+
+ if ($oldversion < 2011011404) {
// Fix quiz_question_instances in the post table after upgrade from 1.9
$table = new xmldb_table('quiz_question_instances');
$columns = $DB->get_columns('quiz_question_instances');
}
}
- upgrade_mod_savepoint(true, 2010122304, 'quiz');
+ upgrade_mod_savepoint(true, 2011011404, 'quiz');
}
return true;