mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 08:11:26 +01:00
f47f90af64
db/mysql.php
22 lines
694 B
PHP
22 lines
694 B
PHP
<?PHP // $Id$
|
|
|
|
function exercise_upgrade($oldversion) {
|
|
// This function does anything necessary to upgrade
|
|
// older versions to match current functionality
|
|
|
|
global $CFG;
|
|
|
|
if ($oldversion < 2003111400) {
|
|
execute_sql(" ALTER TABLE `{$CFG->prefix}exercise_submissions` ADD INDEX (`userid`)");
|
|
execute_sql(" ALTER TABLE `{$CFG->prefix}exercise_submissions` DROP INDEX `title`");
|
|
execute_sql(" ALTER TABLE `{$CFG->prefix}exercise_assessments` ADD INDEX (`submissionid`)");
|
|
execute_sql(" ALTER TABLE `{$CFG->prefix}exercise_assessments` ADD INDEX (`userid`)");
|
|
execute_sql(" ALTER TABLE `{$CFG->prefix}exercise_grades` ADD INDEX (`assessmentid`)");
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
|
|
?>
|