canmove, Confirmed users
1,173
edits
(username should be varchar to allow case insensitivity) |
(→Mysql) |
||
Line 107: | Line 107: | ||
=== Mysql === | === Mysql === | ||
Create the mysql database. Add the following | Create the mysql database. Add the following table: | ||
<pre> | <pre> | ||
CREATE TABLE `wbo` ( | |||
( | `username` varbinary(32) NOT NULL default '', | ||
`collection` varbinary(64) NOT NULL default '', | |||
`id` varbinary(64) NOT NULL default '', | |||
`parentid` varbinary(64) default NULL, | |||
`predecessorid` varbinary(64) default NULL, | |||
`modified` decimal(12,2) default NULL, | |||
`sortindex` int(11) default NULL, | |||
`depth` tinyint(4) default NULL, | |||
`payload` longtext, | |||
`payload_size` int(11) default NULL, | |||
PRIMARY KEY (`username`,`collection`,`id`), | |||
KEY `parentindex` (`username`,`collection`,`parentid`), | |||
) | KEY `modified` (`username`,`collection`,`modified`), | ||
KEY `weightindex` (`username`,`collection`,`sortindex`), | |||
KEY `predecessorindex` (`username`,`collection`,`predecessorid`) | |||
) ENGINE=InnoDB | |||
</pre> | </pre> | ||