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`; | DROP TABLE IF EXISTS `election_results`; | ||||||
|  CREATE TABLE `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 |    `result` text | ||||||
|  ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |  ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bradley M. Kuhn
						Bradley M. Kuhn