Skip to content

Commit

Permalink
MDL-14605 removing stats upgrade stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 2, 2008
1 parent 29cb9c5 commit 0b51c24
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion admin/cliupgrade.php
Expand Up @@ -882,7 +882,6 @@
if ($status) {
// Install the roles system.
moodle_install_roles();
set_config('statsrolesupgraded',time());

// Write default settings unconditionally (i.e. even if a setting is already set, overwrite it)
// (this should only have any effect during initial install).
Expand Down
1 change: 0 additions & 1 deletion admin/index.php
Expand Up @@ -193,7 +193,6 @@

// Install the roles system.
moodle_install_roles();
set_config('statsrolesupgraded',time());

// install core event handlers
events_update_definition();
Expand Down
6 changes: 6 additions & 0 deletions lib/db/upgrade.php
Expand Up @@ -55,6 +55,12 @@ function xmldb_main_upgrade($oldversion=0) {
upgrade_main_savepoint($result, 2008050100);
}

if ($result && $oldversion < 2008050200) {
// remove unused config options
unset_config('statsrolesupgraded');
upgrade_main_savepoint($result, 2008050200);
}

return $result;
}

Expand Down
2 changes: 1 addition & 1 deletion version.php
Expand Up @@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)

$version = 2008050100; // YYYYMMDD = date of the last version bump
$version = 2008050200; // YYYYMMDD = date of the last version bump
// XX = daily increments

$release = '2.0 dev (Build: 20080502)'; // Human-friendly version name
Expand Down

0 comments on commit 0b51c24

Please sign in to comment.