election_tmp_tokens table should be created by schema.sql

This table, which is essential to the election, was not listed in the
schema.sql.  This adds a CREATE TABLE command for it.
This commit is contained in:
Bradley M. Kuhn 2013-12-18 18:55:23 -05:00
parent dce402d2ad
commit a4a320a6b6

View file

@ -59,3 +59,13 @@ CREATE TABLE `election_votes` (
`preference` int(11) NOT NULL default '0', `preference` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)); PRIMARY KEY (`id`));
/* Data in election_tmp_tokens only lives while the election is ongoing, and
** the PHP code deletes these entries when it records votes.
*/
DROP TABLE IF EXISTS `election_tmp_tokens`;
CREATE TABLE `election_tmp_tokens` (
`election_id` int(11) NOT NULL default '0',
`election_voter_id` int(11) NOT NULL default '0',
`tmp_token` varchar(26) NOT NULL default '');