Compare commits

..

1 Commits

Author SHA1 Message Date
ee28c2950a refactor poll_votes database queries 2018-07-18 19:53:18 -04:00

View File

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