MyMoodle: new /my/ page, contains course overview (module based, forum done). User defined blocks on /my/ page, admin defined stickyblocks. Needs lots of testing. Held off bumping version.php for blocks because of the postgres upgrade fixes Patrick is putting in.
This commit is contained in:
@@ -146,6 +146,18 @@ global $CFG;
|
||||
modify_database('','ALTER TABLE prefix_block_instance ALTER position SET NOT NULL');
|
||||
}
|
||||
|
||||
if ($oldversion < 2005081600) {
|
||||
$result = $result && modify_database('',"CREATE TABLE prefix_block_pinned (
|
||||
id SERIAL8 PRIMARY KEY,
|
||||
blockid INT8 NOT NULL default 0,
|
||||
pagetype varchar(20) NOT NULL default '',
|
||||
position varchar(10) NOT NULL default '',
|
||||
weight INT NOT NULL default 0,
|
||||
visible INT NOT NULL default 0,
|
||||
configdata text NOT NULL default 0
|
||||
);");
|
||||
}
|
||||
|
||||
//Finally, return result
|
||||
return $result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user