Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added the field external to the mdl_scorm table

  • Loading branch information...
commit efe95fc4056fa055c684fb1bfcb642dca7683e0a 1 parent 949817a
csantossaenz authored
Showing with 9 additions and 4 deletions.
  1. +7 −2 mod/scorm/db/upgrade.php
  2. +2 −2 mod/scorm/version.php
View
9 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;
View
4 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)?
?>
Please sign in to comment.
Something went wrong with that request. Please try again.