Compare commits

..

1 Commits

Author SHA1 Message Date
102997efc8 refactor poll_votes database queries 2018-07-18 19:35:35 -04:00

View File

@ -67,6 +67,7 @@ CREATE TABLE `polls` (
CREATE TABLE `poll_options` (
`option_id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,
`post_id` MEDIUMINT UNSIGNED NOT NULL,
`quest_id` SMALLINT UNSIGNED NOT NULL,
`option_text` VARCHAR(200) NOT NULL,
PRIMARY KEY (`option_id`),
FOREIGN KEY (`post_id`) REFERENCES `polls`(`post_id`)