Commit graph

11 commits

Author SHA1 Message Date
Bradley M. Kuhn
a4a320a6b6 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.
2013-12-18 18:55:23 -05:00
Bradley M. Kuhn
dce402d2ad Create election_voters table & adapt code to use it instead of foundationmembers.
foundationmembers was a table specific to the GNOME Foundation.  This new
table, election_voters, allows creation of an electorate based on a list.

README is updated to explain how to use this table.
2013-12-18 18:53:50 -05:00
Bradley M. Kuhn
cf3f3e5180 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.
2013-12-18 18:47:16 -05:00
Bradley M. Kuhn
35e87c2c65 Don't refer back to a list; just tell the user they must have election_id.
This is probably not the right long-term solution.  Ideally, I think it'd be
useful if elections could be marked private or public, and elections that are
public would be listed automatically, and private ones wouldn't appear.

It seems there are some remnants in the code that make it look like someone
was going to make a step 0, which would list the elections from the database,
but that was never done.

So, I've hard-coded what I wanted here, in hopes someone else comes along and
does it up right.
2013-12-18 17:33:06 -05:00
Bradley M. Kuhn
f3fab42403 Make variables for name of committee running election and its email address.
GNOME's Election committee was previously hard-code here, but the code is
more reusable if it is no longer hard-coded.  The variables still default to
GNOME's details, but can be overridden with the configuration file.
2013-12-18 17:26:15 -05:00
Bradley M. Kuhn
78bef629e3 Better error message here. 2013-12-18 17:09:12 -05:00
Bradley M. Kuhn
6008db6237 Properly format schema.sql for MySQL & drop tables first.
With this change, schema.sql can be run directly from the mysql command line,
with a command such as:
$ mysql -u root -p -D dbname < .../vote/include/schema.sql
2013-12-18 15:38:02 -05:00
Bradley M. Kuhn
2b47703a0c Remove reference to GNOME elections committee. 2013-12-18 13:57:42 -05:00
Bradley M. Kuhn
9365117edd No longer reference removed directories. 2013-12-18 13:14:03 -05:00
Bradley M. Kuhn
e1c74e6acc Remove records of old GNOME Foundation Elections pre-2013.
We're going to use this to run Conservancy project elections in future, and
as such we don't need records of old GNOME elections.

I'm leaving 2013 to use as a template.
2013-12-17 13:23:19 -05:00
Bradley M. Kuhn
8dde472f6c foundation.gnome.org not needed in this case, as only using this for voting. 2013-12-17 13:14:33 -05:00