Each election should only have one set of results; use UNIQUE to enforce.
This commit is contained in:
parent
54d0a4b5cb
commit
045b85b1ae
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ DROP TABLE IF EXISTS `election_choices`;
|
|||
|
||||
DROP TABLE IF EXISTS `election_results`;
|
||||
CREATE TABLE `election_results` (
|
||||
`election_id` int(11) NOT NULL default '0',
|
||||
`election_id` int(11) NOT NULL UNIQUE default '0',
|
||||
`result` text
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
|
Loading…
Reference in a new issue