The election_results table should be in the schema.
I was unsure what field type to make the results, but reading this: http://dev.mysql.com/doc/refman/5.0/en/blob.html convinced me that I should probably make it "text" type.
This commit is contained in:
		
							parent
							
								
									1f695220a0
								
							
						
					
					
						commit
						13de6b65da
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		|  | @ -23,6 +23,17 @@ DROP TABLE IF EXISTS `election_choices`; | |||
|    PRIMARY KEY  (`id`) | ||||
|  ) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8 ; | ||||
| 
 | ||||
| /* The election_results table stores the HTML output from the openstv command. | ||||
| ** It must be inserted manually at the end of the election. | ||||
| */ | ||||
| 
 | ||||
| DROP TABLE IF EXISTS `election_results`; | ||||
|  CREATE TABLE `election_results` ( | ||||
|    `election_id` int(11) NOT NULL default '0', | ||||
|    `result` text | ||||
|  ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||||
| 
 | ||||
| 
 | ||||
| /* Data in election_tmp_tokens only lives while the election is ongoing, and | ||||
| ** the PHP code deletes these entries when it records votes. | ||||
| */ | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bradley M. Kuhn
						Bradley M. Kuhn