mediawiki-extensions-AJAXPoll/sql/create-table--ajaxpoll_vote.sql
Jack Phoenix 125e943aa2 Actor support, now requires MW 1.34(+)
Bug: T227345
Change-Id: I6b3cefb37efe770f7dcb7f7c093bf71e1e8bb543
2020-01-14 16:32:56 +02:00

11 lines
423 B
SQL

CREATE TABLE IF NOT EXISTS /*_*/ajaxpoll_vote (
`poll_vote_id` int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
`poll_id` varchar(32) NOT NULL default '',
`poll_actor` bigint unsigned NOT NULL,
`poll_ip` varchar(255) default NULL,
`poll_answer` int(3) default NULL,
`poll_date` datetime default NULL
) /*$wgDBTableOptions*/;
CREATE UNIQUE INDEX /*i*/poll_id_actor ON /*_*/ajaxpoll_vote (poll_id, poll_actor);