mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
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:
parent
0ef7c97344
commit
10ee08cc65
@ -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;
|
||||
|
||||
}
|
||||
|
@ -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',
|
||||
|
@ -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,
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user