liquid_feedback_core

annotate Makefile @ 126:5edfb00d840a

Implementation of Schulze's Supermajority Requirements

Changes in detail:
- Renamed column "agreed" of table "initiative" to "majority"
- Added column "winner" to table "initiative"
- Extended constraint "non_admitted_initiatives_cant_contain_voting_results" of table "initiative" to "rank" and "winner" columns
- Removed constraint "non_agreed_initiatives_cant_get_a_rank" from table "initiative"
- Replaced PRIMARY KEY of "battle" table by a single NOT NULL constraint on column "issue_id" and three (partial) indicies allowing NULL values as initiative ids
- Added constraint "initiative_ids_not_equal" to "battle" table
- Added view "battle_participant" which selects admitted initiatives plus one virtual "status-quo" initiative for each issue denoted by an initiative_id being NULL
- Modified "battle_view" to include all admitted initiatives plus the virtual "status-quo" initiative
- Modified function "calculate_ranks" to respect all battle participants, to set the rank of all initiatives where the rank is better than status-quo, and to mark the final winner (if existent)
author jbe
date Tue May 24 03:01:49 2011 +0200 (2011-05-24)
parents 8d021cb5eaf4
children c8cd87b87708
rev   line source
jbe@0 1 lf_update: lf_update.c
jbe@0 2 cc -Wall -g -lpq \
jbe@0 3 -I "`pg_config --includedir`" \
jbe@0 4 -L "`pg_config --libdir`" \
jbe@0 5 -o lf_update lf_update.c
jbe@0 6
jbe@0 7 clean::
jbe@0 8 rm -f lf_update

Impressum / About Us