New feature: Notify teachers/students of expirying enrolments

This commit is contained in:
patrickslee
2005-10-02 21:37:54 +00:00
parent 3de938d705
commit 7246c2d142
11 changed files with 143 additions and 2 deletions
+10
View File
@@ -1375,6 +1375,16 @@ function main_upgrade($oldversion=0) {
modify_database("","CREATE INDEX prefix_stats_user_monthly_timeend_idx ON prefix_stats_user_monthly (timeend);");
}
if ($oldversion < 2005100300) {
table_column('course','','expirynotify','integer','1');
table_column('course','','expirythreshold','integer');
table_column('course','','notifystudents','integer','1');
$new = new stdClass();
$new->name = 'lastexpirynotify';
$new->value = 0;
insert_record('config', $new);
}
return $result;
}