mirror of
https://github.com/moodle/moodle.git
synced 2025-01-23 00:28:57 +01:00
18 lines
438 B
PHP
18 lines
438 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;");
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
?>
|