From 740343853227c1819beb6e359f4dc0c65bb482da Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 20 Nov 2014 10:41:26 +1300 Subject: [PATCH] fix for version upgrade mis-match with earlier versions. --- db/upgrade.php | 8 ++++---- version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/db/upgrade.php b/db/upgrade.php index fb264f7..12a0b95 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -34,7 +34,7 @@ function xmldb_attendance_upgrade($oldversion=0) { $result = true; - if ($oldversion < 2014072101) { + if ($oldversion < 2014112000) { $table = new xmldb_table('attendance_sessions'); $field = new xmldb_field('studentscanmark'); @@ -43,10 +43,10 @@ function xmldb_attendance_upgrade($oldversion=0) { $dbman->add_field($table, $field); } - upgrade_mod_savepoint($result, 2014072101, 'attendance'); + upgrade_mod_savepoint($result, 2014112000, 'attendance'); } - if ($oldversion < 2014072102) { + if ($oldversion < 2014112001) { // Replace values that reference old module "attforblock" to "attendance". $sql = "UPDATE {grade_items} SET itemmodule = 'attendance' @@ -82,7 +82,7 @@ function xmldb_attendance_upgrade($oldversion=0) { // Delete old capabilities. $DB->delete_records_select('capabilities', 'component = ?', array('mod_attforblock')); - upgrade_plugin_savepoint($result, 2014072102, 'mod', 'attendance'); + upgrade_plugin_savepoint($result, 2014112001, 'mod', 'attendance'); } return $result; diff --git a/version.php b/version.php index 2ef76ce..427a816 100644 --- a/version.php +++ b/version.php @@ -22,7 +22,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$plugin->version = 2014100900; +$plugin->version = 2014112001; $plugin->requires = 2014042900; $plugin->release = '2.7.1'; $plugin->maturity = MATURITY_STABLE;