New course option to enable/disable display of "recent activity"

This commit is contained in:
moodler
2002-11-12 04:26:16 +00:00
parent cbb0fee071
commit 13beeacbcd
8 changed files with 77 additions and 36 deletions
+4
View File
@@ -193,6 +193,10 @@ function main_upgrade($oldversion=0) {
print_simple_box_end();
}
if ($oldversion < 2002111200) {
execute_sql(" ALTER TABLE `course` ADD `showrecent` TINYINT(5) UNSIGNED DEFAULT '1' NOT NULL AFTER `numsections` ");
}
return true;
}
+1
View File
@@ -44,6 +44,7 @@ CREATE TABLE `course` (
`guest` tinyint(2) unsigned NOT NULL default '0',
`startdate` int(10) unsigned NOT NULL default '0',
`numsections` smallint(5) unsigned NOT NULL default '1',
`showrecent` smallint(5) unsigned NOT NULL default '1',
`marker` int(10) unsigned NOT NULL default '0',
`timecreated` int(10) unsigned NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',