Remove duplicate election_tmp_tokens CREATE:

I added this earlier not realizing it was elsewhere in the file.  However, my
comment is probably useful so I've left it.
This commit is contained in:
Bradley M. Kuhn 2014-02-10 12:17:32 -05:00
parent ffe0af6767
commit 611142c18f

View file

@ -22,6 +22,11 @@ DROP TABLE IF EXISTS `election_choices`;
`choice` varchar(150) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=39 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.
*/
DROP TABLE IF EXISTS `election_tmp_tokens`;
CREATE TABLE `election_tmp_tokens` (
`election_id` int(11) NOT NULL default '0',
@ -59,13 +64,3 @@ CREATE TABLE `election_votes` (
`preference` int(11) NOT NULL default '0',
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 '');