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:
+1
-1
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user