mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 08:11:26 +01:00
23 lines
833 B
PHP
23 lines
833 B
PHP
<?PHP // $Id$
|
|
|
|
function choice_upgrade($oldversion) {
|
|
// This function does anything necessary to upgrade
|
|
// older versions to match current functionality
|
|
|
|
if ($oldversion < 2002090800) {
|
|
execute_sql(" ALTER TABLE `choice` CHANGE `answer1` `answer1` VARCHAR( 255 )");
|
|
execute_sql(" ALTER TABLE `choice` CHANGE `answer2` `answer2` VARCHAR( 255 )");
|
|
}
|
|
if ($oldversion < 2002102400) {
|
|
execute_sql(" ALTER TABLE `choice` ADD `answer3` varchar(255) NOT NULL AFTER `answer2`");
|
|
execute_sql(" ALTER TABLE `choice` ADD `answer4` varchar(255) NOT NULL AFTER `answer3`");
|
|
execute_sql(" ALTER TABLE `choice` ADD `answer5` varchar(255) NOT NULL AFTER `answer4`");
|
|
execute_sql(" ALTER TABLE `choice` ADD `answer6` varchar(255) NOT NULL AFTER `answer5`");
|
|
}
|
|
return true;
|
|
}
|
|
|
|
|
|
?>
|
|
|