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:
parent
ffe0af6767
commit
611142c18f
1 changed files with 5 additions and 10 deletions
|
@ -22,6 +22,11 @@ DROP TABLE IF EXISTS `election_choices`;
|
||||||
`choice` varchar(150) NOT NULL default '',
|
`choice` varchar(150) NOT NULL default '',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8 ;
|
) 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`;
|
DROP TABLE IF EXISTS `election_tmp_tokens`;
|
||||||
CREATE TABLE `election_tmp_tokens` (
|
CREATE TABLE `election_tmp_tokens` (
|
||||||
`election_id` int(11) NOT NULL default '0',
|
`election_id` int(11) NOT NULL default '0',
|
||||||
|
@ -59,13 +64,3 @@ 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 '');
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue