MDL-42904: Self enrol. Fix sloppy version numbers

This commit is contained in:
Damyon Wiese
2013-12-03 11:19:24 +08:00
parent 05d6010d2c
commit a296572f2c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -51,10 +51,10 @@ function xmldb_enrol_self_upgrade($oldversion) {
// Moodle v2.5.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2013112100) {
if ($oldversion < 2013050101) {
// Set customint1 (group enrolment key) to 0 if it was not set (null).
$DB->execute("UPDATE {enrol} SET customint1 = 0 WHERE enrol = 'self' AND customint1 IS NULL");
upgrade_plugin_savepoint(true, 2013112100, 'enrol', 'self');
upgrade_plugin_savepoint(true, 2013050101, 'enrol', 'self');
}
+1 -1
View File
@@ -24,7 +24,7 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2013112100; // The current plugin version (Date: YYYYMMDDXX)
$plugin->version = 2013050101; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2013050100; // Requires this Moodle version
$plugin->component = 'enrol_self'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 600;