MDL-41761 statistics should be calculable for last or highest attempts
authorJamie Pratt <me@jamiep.org>
Mon, 30 Sep 2013 11:05:46 +0000 (18:05 +0700)
committerJamie Pratt <me@jamiep.org>
Mon, 30 Sep 2013 11:05:46 +0000 (18:05 +0700)
commit6dd9362e84e044a6578b120edd04897cc7fbc1f1
treef647df62580c107a5f9385706eab748c4366b600
parentd50b05e69642f099a8fe7530c48879395fbcfbb4
MDL-41761 statistics should be calculable for last or highest attempts

as well as for first or all attempts.

This commit drops a database table and then recreates it. This is in
order to be able to have some new columns in the table be NOT NULL with
no default value, which would not be possible if I added fields to an
existing table.

The quiz_statistics table is used for caching calculated values only
and thus we can safely drop it and recreate it.
13 files changed:
mod/quiz/report/attemptsreport.php
mod/quiz/report/reportlib.php
mod/quiz/report/statistics/classes/calculated.php
mod/quiz/report/statistics/classes/calculator.php
mod/quiz/report/statistics/db/install.xml
mod/quiz/report/statistics/db/upgrade.php
mod/quiz/report/statistics/lang/en/quiz_statistics.php
mod/quiz/report/statistics/report.php
mod/quiz/report/statistics/statistics_form.php
mod/quiz/report/statistics/statistics_graph.php
mod/quiz/report/statistics/statisticslib.php
mod/quiz/report/statistics/tests/stats_from_steps_walkthrough_test.php
mod/quiz/report/statistics/version.php