moodle/mod/attendance/db/mysql.php
jungwirr cddc26f6fb Added preference to allow for default attendance status for unedited
rolls.  (it used to be just 'present' now it can be any of the three.
2003-09-19 04:24:28 +00:00

19 lines
414 B
PHP

<?PHP
function attendance_upgrade($oldversion) {
/// This function does anything necessary to upgrade
/// older versions to match current functionality
global $CFG;
if ($oldversion < 2003091801) {
execute_sql("ALTER TABLE `attendance` ADD `edited` TINYINT( 1 ) DEFAULT '0' NOT NULL;");
execute_sql("UPDATE `attendance` set `edited` = 1;");
}
return true;
}
?>