Change defaults on user vote display mode to upvotes + downvotes

This commit is contained in:
Dessalines 2024-04-05 11:43:59 -04:00
parent 705e86eb4c
commit b9e49d63cd
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,6 @@
ALTER TABLE local_user_vote_display_mode
ALTER COLUMN upvotes SET DEFAULT FALSE,
ALTER COLUMN downvotes SET DEFAULT FALSE,
ALTER COLUMN score SET DEFAULT TRUE,
ALTER COLUMN upvote_percentage SET DEFAULT TRUE;

View file

@ -0,0 +1,10 @@
-- Based on a poll, update the local_user_vote_display_mode defaults to:
-- Upvotes + Downvotes
-- Rather than
-- Score + upvote_percentage
ALTER TABLE local_user_vote_display_mode
ALTER COLUMN upvotes SET DEFAULT TRUE,
ALTER COLUMN downvotes SET DEFAULT TRUE,
ALTER COLUMN score SET DEFAULT FALSE,
ALTER COLUMN upvote_percentage SET DEFAULT FALSE;