added a field to store ckecksum of a remote package
authorcsantossaenz <csantossaenz>
Wed, 17 Jan 2007 15:31:40 +0000 (15:31 +0000)
committercsantossaenz <csantossaenz>
Wed, 17 Jan 2007 15:31:40 +0000 (15:31 +0000)
mod/scorm/db/upgrade.php

index 2d51732..d4a2e0d 100644 (file)
@@ -200,6 +200,18 @@ function xmldb_scorm_upgrade($oldversion=0) {
         $result = $result && create_table($table);
     }
     
+       //Adding new field to table scorm
+        if ($result && $oldversion < 2007011700) {
+
+    /// Define field format to be added to data_comments
+        $table = new XMLDBTable('scorm');
+        $field = new XMLDBField('md5_result');
+        $field->setAttributes(XMLDB_TYPE_TEXT, null , null, null, null, null, null, null, null);
+
+    /// Launch add field format
+        $result = $result && add_field($table, $field);
+
+    }
 
     return $result;
 }