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:
parent
dce402d2ad
commit
a4a320a6b6
1 changed files with 10 additions and 0 deletions
|
@ -59,3 +59,13 @@ 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 '');
|
||||
|
||||
|
|
Loading…
Reference in a new issue