liquid_feedback_core
annotate update/core-update.v1.2.6-v1.2.7.sql @ 155:043e6e235a53
Added configuration option to allow indirect supermajority requirements
- Added column "majority_indirect" to table "policy"
- Do not calculate "attainable" field in function "close_voting" but in function "calculate_ranks"
- Copy "positive_votes" and "negative_votes" from "battle" table, instead of calculating them seperatly
- Optionally regarding indirect (super)majorities in "calculate_ranks"
- Added column "majority_indirect" to table "policy"
- Do not calculate "attainable" field in function "close_voting" but in function "calculate_ranks"
- Copy "positive_votes" and "negative_votes" from "battle" table, instead of calculating them seperatly
- Optionally regarding indirect (super)majorities in "calculate_ranks"
author | jbe |
---|---|
date | Fri Jun 03 13:28:51 2011 +0200 (2011-06-03) |
parents | dcaa1525c388 |
children |
rev | line source |
---|---|
jbe@72 | 1 BEGIN; |
jbe@72 | 2 |
jbe@72 | 3 CREATE OR REPLACE VIEW "liquid_feedback_version" AS |
jbe@72 | 4 SELECT * FROM (VALUES ('1.2.7', 1, 2, 7)) |
jbe@72 | 5 AS "subquery"("string", "major", "minor", "revision"); |
jbe@72 | 6 |
jbe@72 | 7 DROP VIEW "global_delegation"; |
jbe@72 | 8 |
jbe@72 | 9 CREATE VIEW "global_delegation" AS |
jbe@72 | 10 SELECT "id", "truster_id", "trustee_id" |
jbe@72 | 11 FROM "active_delegation" WHERE "scope" = 'global'; |
jbe@72 | 12 |
jbe@72 | 13 COMMIT; |