fix upgrade path for UON code
authorDan Marsden <dan@danmarsden.com>
Fri, 22 Aug 2014 02:06:13 +0000 (14:06 +1200)
committerDan Marsden <dan@danmarsden.com>
Fri, 22 Aug 2014 02:06:13 +0000 (14:06 +1200)
db/upgrade.php
version.php

index 579f80f..fb264f7 100644 (file)
@@ -34,7 +34,7 @@ function xmldb_attendance_upgrade($oldversion=0) {
 
     $result = true;
 
-    if ($oldversion < 2013082901) {
+    if ($oldversion < 2014072101) {
         $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, 2013082901, 'attendance');
+        upgrade_mod_savepoint($result, 2014072101, 'attendance');
     }
 
-    if ($oldversion < 2013082902) {
+    if ($oldversion < 2014072102) {
         // 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, 2013082902, 'mod', 'attendance');
+        upgrade_plugin_savepoint($result, 2014072102, 'mod', 'attendance');
     }
 
     return $result;
index 2865f09..cc0015e 100644 (file)
@@ -22,7 +22,7 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-$plugin->version  = 2014072100;
+$plugin->version  = 2014072102;
 $plugin->requires = 2014042900;
 $plugin->release = '2.7.0';
 $plugin->maturity  = MATURITY_STABLE;