From cf3f3e518064fef61b66c604e7c4c0454ce8747f Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 18 Dec 2013 18:47:16 -0500 Subject: [PATCH] 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. --- vote/include/schema.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/vote/include/schema.sql b/vote/include/schema.sql index ec44fb1..8ad476a 100644 --- a/vote/include/schema.sql +++ b/vote/include/schema.sql @@ -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`));