diff --git a/blocks/db/mysql.php b/blocks/db/mysql.php index 0320c52d58a..f78b02e7b18 100644 --- a/blocks/db/mysql.php +++ b/blocks/db/mysql.php @@ -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', diff --git a/blocks/db/postgres7.php b/blocks/db/postgres7.php index 5a226c0288a..f399aee7daa 100644 --- a/blocks/db/postgres7.php +++ b/blocks/db/postgres7.php @@ -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',