mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 16:18:24 +01:00
25 lines
704 B
PHP
25 lines
704 B
PHP
<?php
|
|
|
|
function attendance_upgrade($oldversion) {
|
|
/// This function does anything necessary to upgrade
|
|
/// older versions to match current functionality
|
|
|
|
global $CFG;
|
|
|
|
//table_column($table, $oldfield, $field, $type="integer", $size="10",
|
|
// $signed="unsigned", $default="0", $null="not null", $after="")
|
|
|
|
|
|
if ($oldversion < 2003091802) {
|
|
table_column("attendance", "", "edited", "integer", 2, "unsigned", "0", "not null");
|
|
execute_sql("UPDATE {$CFG->prefix}attendance set edited = 1;");
|
|
}
|
|
if ($oldversion < 2003092500) {
|
|
table_column("attendance", "", "autoattend", "integer", 2, "unsigned", "0", "not null");
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
?>
|