From: csantossaenz Date: Thu, 18 Jan 2007 12:05:14 +0000 (+0000) Subject: Added the field external to the mdl_scorm table X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=efe95fc4056fa055c684fb1bfcb642dca7683e0a;p=moodle.git Added the field external to the mdl_scorm table --- diff --git a/mod/scorm/db/upgrade.php b/mod/scorm/db/upgrade.php index d4a2e0df5e..a4d43eba6e 100644 --- a/mod/scorm/db/upgrade.php +++ b/mod/scorm/db/upgrade.php @@ -201,16 +201,21 @@ function xmldb_scorm_upgrade($oldversion=0) { } //Adding new field to table scorm - if ($result && $oldversion < 2007011700) { + if ($result && $oldversion < 2007011800) { /// 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); + $field->setAttributes(XMLDB_TYPE_CHAR, '32' , null, null, null, null, null, null, null); /// Launch add field format $result = $result && add_field($table, $field); + $field = new XMLDBField('external'); + $field->setAttributes(XMLDB_TYPE_INTEGER, '2', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, null, null, '0', null); + $result = $result && add_field($table, $field); + + } return $result; diff --git a/mod/scorm/version.php b/mod/scorm/version.php index ff568195b2..5af382519d 100755 --- a/mod/scorm/version.php +++ b/mod/scorm/version.php @@ -10,8 +10,8 @@ // catch up now, so until 27th October please only increment in very tiny steps // in HEAD, until we get past that date.. -$module->version = 2007011700; // The (date) version of this module +$module->version = 2007011800; // The (date) version of this module $module->requires = 2006080900; // The version of Moodle that is required -$module->cron = 0; // How often should cron check this module (seconds)? +$module->cron = 300; // How often should cron check this module (seconds)? ?>