Affects Version/s: 2.0.1, 2.1.4, 2.2.1, 2.3
Test the mod_quiz upgrade in
MDL-30635and make sure modules.cron gets updated from 0 to 60.
Affected Branches:MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
Fixed Branches:MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
Pull from Repository:
1. Create a new plugin with and put the following line in version.php:
$plugin->cron = 0
2. Install the plugin to a Moodle server.
3. Update version.php, changing the $plugin->version number and setting the cron line to, for example:
$plugin->cron = 60
4. Visit the admin/notifications page to upgrade the module
'mdl_modules' database table now contains the updated 'cron' value for this plugin (i.e. it should be '60')
'mdl_modules' database table still has the original 'cron' value ('0')
For the moment, I've added a manual upgrade to the cron value in 'mypluginname/db/upgrade.php', but would prefer not to have to do that.