diff -u -r1.49.2.2 version.php
--- a/mod/scorm/version.php	3 Jul 2007 07:55:33 -0000	1.49.2.2
+++ b/mod/scorm/version.php	5 Nov 2007 02:54:56 -0000
@@ -10,7 +10,7 @@
 //       catch up now, so until 27th October please only increment in very tiny steps 
 //       in HEAD, until we get past that date..
 
-$module->version  = 2007070300;   // The (date) version of this module
+$module->version  = 2007070301;   // The (date) version of this module
 $module->requires = 2007020200;   // The version of Moodle that is required
 $module->cron     = 300;            // How often should cron check this module (seconds)?
 
diff -u -r1.8.2.3 upgrade.php
--- a/mod/scorm/db/upgrade.php	3 Jul 2007 07:54:32 -0000	1.8.2.3
+++ b/mod/scorm/db/upgrade.php	5 Nov 2007 02:54:56 -0000
@@ -1,4 +1,4 @@
-<?php  //$Id: upgrade.php,v 1.8.2.3 2007/07/03 07:54:32 bobopinna Exp $
+<?php  //$Id$
 
 // This file keeps track of upgrades to 
 // the scorm module
@@ -274,6 +274,15 @@
         }
     }
 
+	// Adding missing 'version' field to table scorm
+    if ($result && $oldversion < 2007070301) {
+        $table = new XMLDBTable('scorm');
+        $field = new XMLDBField('version');
+        $field->setAttributes(XMLDB_TYPE_CHAR, '9', null, XMLDB_NOTNULL, null, null, null, 'scorm_12', 'summary');
+
+        $result = $result && add_field($table, $field);
+    }
+
     return $result;
 }
 
