liquid_feedback_core
annotate update/core-update.v1.2.6-v1.2.7.sql @ 139:e3bfa2d7954c
Always ensure stable voting results by disqualifying certain initiatives, and bugfix related to setting "issue_state" in "calculate_ranks"
- Removed column "majority_indirect" from table "policy"
- Removed column "eligible" from table "initiative" ("eligible" can be calculated as "attainable"=TRUE AND "favored"=TRUE AND "disqualified"=FALSE)
- Split "rank" column of table "initiative" into columns "preliminary_rank" and "final_rank"
- Added column "disqualified" to table "initiative"
- Removed column "promising" from table "initiative"
- Removed constraints from table "initiative"
- Updated functions "close_voting" and "calculate_ranks"
- Added TODO notice in function "clean_issue"
- Removed column "majority_indirect" from table "policy"
- Removed column "eligible" from table "initiative" ("eligible" can be calculated as "attainable"=TRUE AND "favored"=TRUE AND "disqualified"=FALSE)
- Split "rank" column of table "initiative" into columns "preliminary_rank" and "final_rank"
- Added column "disqualified" to table "initiative"
- Removed column "promising" from table "initiative"
- Removed constraints from table "initiative"
- Updated functions "close_voting" and "calculate_ranks"
- Added TODO notice in function "clean_issue"
author | jbe |
---|---|
date | Sun May 29 19:51:16 2011 +0200 (2011-05-29) |
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; |