table_column("scorm", "", "skipview", "TINYINT", "1", "UNSIGNED", "1", "NOT NULL", "launch");
}
+ if ($oldversion < 2006102702) { /// A month in advance!
+ execute_sql("DELETE FROM {$CFG->prefix}log_display WHERE module = 'scorm' AND action = 'review' AND mtable = 'resource' AND field = 'name';", false); // MDL-6516
+ execute_sql("INSERT INTO {$CFG->prefix}log_display (module, action, mtable, field) VALUES ('scorm', 'review', 'scorm', 'name');", false);
+ }
+
return true;
}
?>
}
modify_database('',"DROP TABLE prefix_scorm_sco_users");
- modify_database('',"INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'review', 'resource', 'name')");
+ modify_database('',"INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'review', 'resource', 'name')"); // Wrong line! See MDL-6516
}
if ($oldversion < 2005040200) {
table_column("scorm", "", "skipview", "integer", "", "", "1", "NOT NULL");
}
+ if ($oldversion < 2006102702) { // This is a month in advance!!!!!
+ execute_sql("DELETE FROM {$CFG->prefix}log_display WHERE module = 'resource' AND action = 'review' AND mtable = 'resource' AND field = 'name';", false); // See MDL-6516
+ execute_sql("INSERT INTO {$CFG->prefix}log_display (module, action, mtable, field) VALUES ('scorm', 'review', 'scorm', 'name');", false);
+ }
+
return true;
}
?>
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
/////////////////////////////////////////////////////////////////////////////////
-$module->version = 2006102601; // The (date) version of this module
+$module->version = 2006102702; // The (date) version of this module (NOTE THIS WAS SET WRONG TO AN OCTOBER DATE IN SEPTEMBER!)
$module->requires = 2006080900; // The version of Moodle that is required
$module->cron = 0; // How often should cron check this module (seconds)?