Permalink
Browse files

stats rework: 1. upgrade schema and move data to new schema. (credit:…

… Nigel McNie <nigel@catalyst.net.nz>). 2. Stats processing uses new schema. THIS NEEDS TESTING ON MYSQL. Still to do: schema files (install.xml,*.sql still to be committed), reports to use new schema.
  • Loading branch information...
1 parent 7949f21 commit e5d83d6fc1c71de165ee1fc5413aa6fc092e0f48 mjollnir_ committed Sep 22, 2006
Showing with 399 additions and 119 deletions.
  1. +4 −0 admin/index.php
  2. +395 −119 lib/statslib.php
View
@@ -247,6 +247,10 @@
// Upgrade to the roles system.
moodle_install_roles();
}
+ require_once($CFG->libdir.'/statslib.php');
+ if (!stats_upgrade_for_roles_wrapper()) {
+ error('Couldn\'t upgrade the stats tables to use the new roles system');
+ }
if (!update_capabilities()) {
error('Had trouble upgrading the core capabilities for the Roles System');
} else {
Oops, something went wrong.

0 comments on commit e5d83d6

Please sign in to comment.