2009-11-01 14:55:15 +00:00
|
|
|
<?php
|
2006-10-26 17:33:40 +00:00
|
|
|
|
2009-11-01 14:55:15 +00:00
|
|
|
// This file keeps track of upgrades to
|
2006-10-26 17:33:40 +00:00
|
|
|
// the choice module
|
|
|
|
//
|
|
|
|
// Sometimes, changes between versions involve
|
|
|
|
// alterations to database structures and other
|
|
|
|
// major things that may break installations.
|
|
|
|
//
|
|
|
|
// The upgrade function in this file will attempt
|
|
|
|
// to perform all the necessary actions to upgrade
|
2010-07-06 16:10:17 +00:00
|
|
|
// your older installation to the current version.
|
2006-10-26 17:33:40 +00:00
|
|
|
//
|
|
|
|
// If there's something it cannot do itself, it
|
|
|
|
// will tell you what you need to do.
|
|
|
|
//
|
|
|
|
// The commands in here will all be database-neutral,
|
2008-06-15 10:32:50 +00:00
|
|
|
// using the methods of database_manager class
|
2008-08-16 12:16:01 +00:00
|
|
|
//
|
|
|
|
// Please do not forget to use upgrade_set_timeout()
|
|
|
|
// before any action that may take longer time to finish.
|
2006-10-26 17:33:40 +00:00
|
|
|
|
2008-08-16 12:16:01 +00:00
|
|
|
function xmldb_choice_upgrade($oldversion) {
|
|
|
|
global $CFG, $DB;
|
2006-10-26 17:33:40 +00:00
|
|
|
|
2008-08-16 12:16:01 +00:00
|
|
|
$dbman = $DB->get_manager();
|
2006-10-26 17:33:40 +00:00
|
|
|
|
2011-07-05 18:09:40 +08:00
|
|
|
|
2011-12-08 11:59:01 +08:00
|
|
|
// Moodle v2.2.0 release upgrade line
|
|
|
|
// Put any upgrade step following this
|
|
|
|
|
2012-06-29 11:37:01 +08:00
|
|
|
// Moodle v2.3.0 release upgrade line
|
|
|
|
// Put any upgrade step following this
|
|
|
|
|
|
|
|
|
2010-07-04 10:27:56 +00:00
|
|
|
return true;
|
2006-10-26 17:33:40 +00:00
|
|
|
}
|
|
|
|
|
2009-11-01 14:55:15 +00:00
|
|
|
|