annotate update/core-update.v2.2.5-v2.2.6.sql @ 605:f50171274974
Included hint in README on solving apparently missing data types from extensions
 | author | 
 jbe | 
 | date | 
 Tue Feb 11 17:10:40 2020 +0100 (2020-02-11) | 
 | parents | 
 eaba9174d117  | 
 | children | 
  | 
 
 | rev | 
   line source | 
| 
jbe@419
 | 
     1 -- NOTICE: This update script disables the "no_reserve_beat_path" setting for
 | 
| 
jbe@419
 | 
     2 --         all policies. If this is not intended, please edit this script
 | 
| 
jbe@419
 | 
     3 --         before applying it to your database.
 | 
| 
jbe@419
 | 
     4 
 | 
| 
jbe@419
 | 
     5 BEGIN;
 | 
| 
jbe@419
 | 
     6 
 | 
| 
jbe@419
 | 
     7 CREATE OR REPLACE VIEW "liquid_feedback_version" AS
 | 
| 
jbe@419
 | 
     8   SELECT * FROM (VALUES ('2.2.6', 2, 2, 6))
 | 
| 
jbe@419
 | 
     9   AS "subquery"("string", "major", "minor", "revision");
 | 
| 
jbe@419
 | 
    10 
 | 
| 
jbe@419
 | 
    11 ALTER TABLE "policy" ALTER COLUMN "no_reverse_beat_path" SET DEFAULT FALSE;
 | 
| 
jbe@419
 | 
    12 
 | 
| 
jbe@419
 | 
    13 UPDATE "policy" SET "no_reverse_beat_path" = FALSE;  -- recommended
 | 
| 
jbe@419
 | 
    14 
 | 
| 
jbe@419
 | 
    15 COMMENT ON COLUMN "policy"."no_reverse_beat_path" IS 'EXPERIMENTAL FEATURE: Causes initiatives with "reverse_beat_path" flag to not be "eligible", thus disallowing them to be winner. See comment on column "initiative"."reverse_beat_path". This option ensures both that a winning initiative is never tied in a (weak) condorcet paradox with the status quo and a winning initiative always beats the status quo directly with a simple majority.';
 | 
| 
jbe@419
 | 
    16 
 | 
| 
jbe@419
 | 
    17 COMMENT ON COLUMN "policy"."no_multistage_majority" IS 'EXPERIMENTAL FEATURE: Causes initiatives with "multistage_majority" flag to not be "eligible", thus disallowing them to be winner. See comment on column "initiative"."multistage_majority". This disqualifies initiatives which could cause an instable result. An instable result in this meaning is a result such that repeating the ballot with same preferences but with the winner of the first ballot as status quo would lead to a different winner in the second ballot. If there are no direct majorities required for the winner, or if in direct comparison only simple majorities are required and "no_reverse_beat_path" is true, then results are always stable and this flag does not have any effect on the winner (but still affects the "eligible" flag of an "initiative").';
 | 
| 
jbe@419
 | 
    18 
 | 
| 
jbe@419
 | 
    19 COMMIT;
 |