preference field belongs in election_votes table.
It's clear from the PHP code that there should be an integer field called 'preference' in the election_votes table. I suspect that at some point there was an ALTER TABLE done that wasn't reflected in the schema.sql file.
This commit is contained in:
parent
b1d5cc17b6
commit
cf3f3e5180
1 changed files with 1 additions and 0 deletions
|
@ -44,5 +44,6 @@ CREATE TABLE `election_votes` (
|
|||
`id` int(11) NOT NULL auto_increment,
|
||||
`choice_id` int(11) NOT NULL default '0',
|
||||
`anon_id` int(11) NOT NULL default '0',
|
||||
`preference` int(11) NOT NULL default '0',
|
||||
PRIMARY KEY (`id`));
|
||||
|
||||
|
|
Loading…
Reference in a new issue