moodle/mod/attendance/db/mysql.php

21 lines
598 B
PHP
Raw Normal View History

<?PHP
function attendance_upgrade($oldversion) {
/// This function does anything necessary to upgrade
/// older versions to match current functionality
global $CFG;
2003-09-19 11:58:24 +00:00
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;
}
?>