Fix for bug #1280: the "showrecent" course setting has to go.

The pgsql .php update script needs to be updated, but I 'm not sure about
the pgsql alter table syntax... mysql works, oracle is still under dev, so
no problem there.
This commit is contained in:
defacer 2004-04-29 10:28:19 +00:00
parent 0ef7c97344
commit 10ee08cc65
4 changed files with 72 additions and 71 deletions

View File

@ -748,6 +748,10 @@ function main_upgrade($oldversion=0) {
set_config("enablerssfeeds",0);
}
if ($oldversion < 2004042900) {
execute_sql(" ALTER TABLE `{$CFG->prefix}course` DROP `showrecent` ");
}
return $result;
}

View File

@ -47,7 +47,6 @@ CREATE TABLE `prefix_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',
`maxbytes` int(10) unsigned NOT NULL default '0',
`showreports` int(4) unsigned NOT NULL default '0',

View File

@ -62,7 +62,6 @@ CREATE TABLE prefix_course (
guest number(2) default '0' not null,
startdate number(10) default '0' not null,
numsections number(5) default '1' not null,
showrecent number(5) default '1' not null,
marker number(10) default '0' not null,
visible number(10) default '1' not null,
timecreated number(10) default '0' not null,

View File

@ -25,7 +25,6 @@ CREATE TABLE prefix_course (
guest integer NOT NULL default '0',
startdate integer NOT NULL default '0',
numsections integer NOT NULL default '1',
showrecent integer NOT NULL default '1',
marker integer NOT NULL default '0',
maxbytes integer NOT NULL default '0',
showreports integer NOT NULL default '0',