moodle/mod/lesson/db/mysql.php

23 lines
628 B
PHP
Raw Normal View History

<?PHP
function lesson_upgrade($oldversion) {
/// This function does anything necessary to upgrade
/// older versions to match current functionality
global $CFG;
2004-02-16 12:20:40 +00:00
if ($oldversion < 2004021600) {
2004-02-16 12:20:40 +00:00
delete_records("log_display", "module", "lesson");
modify_database ("", "INSERT INTO prefix_log_display VALUES ('lesson', 'start', 'lesson', 'name');");
modify_database ("", "INSERT INTO prefix_log_display VALUES ('lesson', 'end', 'lesson', 'name');");
modify_database ("", "INSERT INTO prefix_log_display VALUES ('lesson', 'view', 'lesson_pages', 'title');");
}
return true;
}
?>