New course option to enable/disable display of "recent activity"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user