Moodle can now upgrade itself, just like the modules do

This commit is contained in:
martin 2002-07-27 13:09:08 +00:00
parent dafa318bab
commit cbd1170e91
6 changed files with 97 additions and 32 deletions

27
version.php Normal file
View file

@ -0,0 +1,27 @@
<?PHP //$Id$
// This file keeps track of upgrades to Moodle.
//
// Sometimes, changes between versions involve
// alterations to database structures and other
// major things that may break installations.
//
// This file specifies the current version of
// Moodle installed, which can be compared against
// a previous version (see the "config" table).
//
// To do this, visit the "admin" page.
//
// The upgrade function in this file will attempt
// to perform all the necessary actions to upgrade
// your older databases to the current version.
// If there's something it cannot do itself, it
// will tell you what you need to do.
$version = 2002072704;
function upgrade_moodle($oldversion) {
return true;
}
?>