2017-01-18 11:13:57 +02:00
|
|
|
CREATE TABLE /*_*/IUseThis (
|
2011-09-14 18:26:09 +03:00
|
|
|
-- Internal ID to identify between different vote tags on different pages
|
|
|
|
`vote_id` int(11) NOT NULL auto_increment PRIMARY KEY,
|
|
|
|
-- Username (if any) of the person who voted
|
|
|
|
`username` varchar(255) NOT NULL default '0',
|
|
|
|
-- User ID of the person who voted
|
|
|
|
`vote_user_id` int(11) NOT NULL default '0',
|
|
|
|
-- ID of the page where the vote tag is in
|
|
|
|
`vote_page_id` int(11) NOT NULL default '0',
|
|
|
|
-- Timestamp when the vote was cast
|
|
|
|
`vote_date` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
-- IP address of the user who voted
|
|
|
|
`vote_ip` varchar(45) NOT NULL default ''
|
|
|
|
) /*$wgDBTableOptions*/;
|
|
|
|
|
2017-01-18 11:13:57 +02:00
|
|
|
CREATE INDEX vote_page_id_index ON /*_*/IUseThis (vote_page_id);
|
|
|
|
CREATE INDEX usernameidx ON /*_*/IUseThis (username);
|
|
|
|
CREATE INDEX vote_date ON /*_*/IUseThis (vote_date);
|