Added extension: vanilla-voting-0.2beta-0.2beta.zip
[vanilla-miry.git] / extensions / VanillaVoting / database / mysql.sql
blob176c8508a925cd00bef3a887681b6956d0cb169a
1 CREATE TABLE `LUM_UserDiscussionVote` (
2 `DiscussionID` int(8) NOT NULL,
3 `UserID` int(8) NOT NULL,
4 `Vote` tinyint(3) NOT NULL,
5 `DateCreated` datetime NOT NULL default '0000-00-00 00:00:00',
6 KEY `UserDiscussionVote_Key` (`DiscussionID`,`UserID`,`Vote`)
7 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci;
9 CREATE TABLE `LUM_UserCommentVote` (
10 `CommentID` int(8) NOT NULL,
11 `UserID` int(8) NOT NULL,
12 `Vote` tinyint(3) NOT NULL,
13 `DateCreated` datetime NOT NULL default '0000-00-00 00:00:00',
14 KEY `UserCommentVote_Key` (`CommentID`,`UserID`,`Vote`)
15 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci;
17 ALTER TABLE `LUM_Discussion` ADD `Vote` smallint(6) NOT NULL default '0';
19 ALTER TABLE `LUM_Comment` ADD `Vote` smallint(6)  NOT NULL default '0';