Permalink
Browse files

added a field to store ckecksum of a remote package

  • Loading branch information...
csantossaenz
csantossaenz committed Jan 17, 2007
1 parent 7ca455c commit aa7a17131d8f3676039fe9760b000dac31bee2e8
Showing with 12 additions and 0 deletions.
  1. +12 −0 mod/scorm/db/upgrade.php
View
@@ -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;
}

0 comments on commit aa7a171

Please sign in to comment.