From: csantossaenz Date: Wed, 17 Jan 2007 15:31:40 +0000 (+0000) Subject: added a field to store ckecksum of a remote package X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aa7a17131d8f3676039fe9760b000dac31bee2e8;p=moodle.git added a field to store ckecksum of a remote package --- diff --git a/mod/scorm/db/upgrade.php b/mod/scorm/db/upgrade.php index 2d51732b42..d4a2e0df5e 100644 --- a/mod/scorm/db/upgrade.php +++ b/mod/scorm/db/upgrade.php @@ -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; }