mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 16:18:24 +01:00
eab709a095
student on that day. NOTE - cron must be running for this to work properly Modified multi-page views to use arrows instead of words, added a first page and last page link as well. Cleaned up that nav menu a bit as well.
21 lines
598 B
PHP
21 lines
598 B
PHP
<?PHP
|
|
|
|
function attendance_upgrade($oldversion) {
|
|
/// This function does anything necessary to upgrade
|
|
/// older versions to match current functionality
|
|
|
|
global $CFG;
|
|
|
|
if ($oldversion < 2003091802) {
|
|
execute_sql("ALTER TABLE `{$CFG->prefix}attendance` ADD `edited` TINYINT( 1 ) DEFAULT '0' NOT NULL;");
|
|
execute_sql("UPDATE `{$CFG->prefix}attendance` set `edited` = 1;");
|
|
}
|
|
if ($oldversion < 2003092500) {
|
|
execute_sql("ALTER TABLE `{$CFG->prefix}attendance` ADD `autoattend` TINYINT( 1 ) DEFAULT '0' NOT NULL;");
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
?>
|