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:
Bradley M. Kuhn 2014-02-10 17:03:53 -05:00
parent 1f695220a0
commit 13de6b65da

View file

@ -23,6 +23,17 @@ DROP TABLE IF EXISTS `election_choices`;
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8 ; ) 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 /* Data in election_tmp_tokens only lives while the election is ongoing, and
** the PHP code deletes these entries when it records votes. ** the PHP code deletes these entries when it records votes.
*/ */