liquid_feedback_core
annotate update/core-update.v1.2.7-v1.2.8.sql @ 154:8e7d583e02f9
Configurable supermajority requirements related to "disqualification" of initiatives for stability reasons
- Added columns "no_multistage_majority" and "no_reverse_beat_path" to table "policy"
- Renamed columns "(un)favored" to "(un)favored_to_status_quo"
- Renamed "preliminary_rank" to "schulze_rank"
- "schulze_rank" may have a gap due to status quo
- Renamed column "disqualified" to "multistage_majority" in table "initiative"
- Added column "reverse_beat_path" to table "initiative"
- Added column "eligible" to table "initiative"
- Removed column "final_rank" from table "initiative"
- Modified function "calculate_ranks" to fit above changes
- Added columns "no_multistage_majority" and "no_reverse_beat_path" to table "policy"
- Renamed columns "(un)favored" to "(un)favored_to_status_quo"
- Renamed "preliminary_rank" to "schulze_rank"
- "schulze_rank" may have a gap due to status quo
- Renamed column "disqualified" to "multistage_majority" in table "initiative"
- Added column "reverse_beat_path" to table "initiative"
- Added column "eligible" to table "initiative"
- Removed column "final_rank" from table "initiative"
- Modified function "calculate_ranks" to fit above changes
author | jbe |
---|---|
date | Fri Jun 03 02:50:59 2011 +0200 (2011-06-03) |
parents | f77c0f3d443c |
children |
rev | line source |
---|---|
jbe@74 | 1 BEGIN; |
jbe@74 | 2 |
jbe@74 | 3 CREATE OR REPLACE VIEW "liquid_feedback_version" AS |
jbe@74 | 4 SELECT * FROM (VALUES ('1.2.8', 1, 2, 8)) |
jbe@74 | 5 AS "subquery"("string", "major", "minor", "revision"); |
jbe@74 | 6 |
jbe@74 | 7 ALTER TABLE "delegation" DROP CONSTRAINT "delegation_area_id_key"; |
jbe@74 | 8 ALTER TABLE "delegation" DROP CONSTRAINT "delegation_issue_id_key"; |
jbe@74 | 9 DROP INDEX "delegation_global_truster_id_trustee_id_unique_idx"; |
jbe@74 | 10 |
jbe@74 | 11 ALTER TABLE "delegation" ADD UNIQUE ("area_id", "truster_id"); |
jbe@74 | 12 ALTER TABLE "delegation" ADD UNIQUE ("issue_id", "truster_id"); |
jbe@75 | 13 CREATE UNIQUE INDEX "delegation_global_truster_id_unique_idx" |
jbe@74 | 14 ON "delegation" ("truster_id") WHERE "scope" = 'global'; |
jbe@74 | 15 |
jbe@74 | 16 COMMIT; |