SCORM MDL-21568 - add fix for whatgrade column - can't add this to newer upgrade functions as it will break any changes to scorms that have been created since. - hope the upgrade script works cross-db - thanks to Bruce Cota for report/patch

This commit is contained in:
Dan Marsden
2010-07-08 10:45:52 +00:00
parent 03751efe8a
commit 793141476f
+2
View File
@@ -36,6 +36,8 @@ function xmldb_scorm_upgrade($oldversion) {
/// Launch add field whatgrade
if (!$dbman->field_exists($table,$field)) {
$dbman->add_field($table, $field);
/// fix bad usage of whatgrade/grading method. - I hope this works in all dbs
$DB->execute('UPDATE {scorm} SET whatgrade = grademethod/10');
}
upgrade_mod_savepoint(true, 2008073000, 'scorm');