Fix for bug 2711:

Blocks upgrade no longer breaks in Postgres. Also, a "hell why not"
robustness addition to the MySQL upgrade.
This commit is contained in:
defacer
2005-03-10 22:48:29 +00:00
parent 011cfc95ed
commit 658f6a9ce3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ global $CFG;
`id` int(10) not null auto_increment,
`blockid` int(10) not null default '0',
`pageid` int(10) not null default '0',
`pagetype` enum('course') not null,
`pagetype` varchar(12) not null default '',
`position` enum('l', 'r') not null,
`weight` tinyint(3) not null default '0',
`visible` tinyint(1) not null default '0',
+1 -1
View File
@@ -70,7 +70,7 @@ global $CFG;
id SERIAL8 PRIMARY KEY,
blockid INT8 not null default '0',
pageid INT8 not null default '0',
pagetype varchar(12) not null check (pagetype in ('course')),
pagetype varchar(12) not null default '',
position char not null check (position in ('l', 'r')) ,
weight int not null default '0',
visible int not null default '0',