liquid_feedback_core
annotate update/core-update.v1.0.2-v1.0.3.sql @ 128:5ea2f9c5ba9a
Set "rank" for all "admitted" initiatives after voting is finished; Additional columns in "initiative" table store voting result information
Changes in detail:
- Renamed column "majority" of table "initiative" to "attainable"
- Added columns "favored", "unfavored" and "eligible" to "initiative" table
- Added constraints to "initiative" table, restricting certain value combinations in the the new columns
- Modified "calculate_ranks" function to update the new columns and always write "rank" information
- Marking the final winner is now done utilizing the new "eligible" column
Changes in detail:
- Renamed column "majority" of table "initiative" to "attainable"
- Added columns "favored", "unfavored" and "eligible" to "initiative" table
- Added constraints to "initiative" table, restricting certain value combinations in the the new columns
- Modified "calculate_ranks" function to update the new columns and always write "rank" information
- Marking the final winner is now done utilizing the new "eligible" column
author | jbe |
---|---|
date | Tue May 24 14:58:42 2011 +0200 (2011-05-24) |
parents | 3fbf9e18ee52 |
children |
rev | line source |
---|---|
jbe@52 | 1 BEGIN; |
jbe@52 | 2 |
jbe@52 | 3 CREATE OR REPLACE VIEW "liquid_feedback_version" AS |
jbe@52 | 4 SELECT * FROM (VALUES ('1.0.3', 1, 0, 3)) |
jbe@52 | 5 AS "subquery"("string", "major", "minor", "revision"); |
jbe@52 | 6 |
jbe@52 | 7 DROP INDEX "delegating_voter_member_id_idx"; |
jbe@52 | 8 CREATE INDEX "delegating_voter_member_id_idx" ON "delegating_voter" ("member_id"); |
jbe@52 | 9 |
jbe@52 | 10 COMMIT; |