Skip to content

Commit

Permalink
Added the field external to the mdl_scorm table
Browse files Browse the repository at this point in the history
  • Loading branch information
csantossaenz committed Jan 18, 2007
1 parent 949817a commit efe95fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions mod/scorm/db/upgrade.php
Expand Up @@ -201,16 +201,21 @@ function xmldb_scorm_upgrade($oldversion=0) {
} }


//Adding new field to table scorm //Adding new field to table scorm
if ($result && $oldversion < 2007011700) { if ($result && $oldversion < 2007011800) {


/// Define field format to be added to data_comments /// Define field format to be added to data_comments
$table = new XMLDBTable('scorm'); $table = new XMLDBTable('scorm');
$field = new XMLDBField('md5_result'); $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 /// Launch add field format
$result = $result && add_field($table, $field); $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; return $result;
Expand Down
4 changes: 2 additions & 2 deletions mod/scorm/version.php
Expand Up @@ -10,8 +10,8 @@
// catch up now, so until 27th October please only increment in very tiny steps // catch up now, so until 27th October please only increment in very tiny steps
// in HEAD, until we get past that date.. // 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->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)?
?> ?>

0 comments on commit efe95fc

Please sign in to comment.