mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-08 09:24:17 +00:00
Change defaults on user vote display mode to upvotes + downvotes (#4599)
* Change defaults on user vote display mode to upvotes + downvotes * Forgot to regenerate the rows. * Drop and re-add columns instead.
This commit is contained in:
parent
b4670988b5
commit
99d585b7be
|
@ -0,0 +1,10 @@
|
|||
ALTER TABLE local_user_vote_display_mode
|
||||
DROP COLUMN score,
|
||||
ADD COLUMN score boolean DEFAULT TRUE NOT NULL,
|
||||
DROP COLUMN upvotes,
|
||||
ADD COLUMN upvotes boolean DEFAULT FALSE NOT NULL,
|
||||
DROP COLUMN downvotes,
|
||||
ADD COLUMN downvotes boolean DEFAULT FALSE NOT NULL,
|
||||
DROP COLUMN upvote_percentage,
|
||||
ADD COLUMN upvote_percentage boolean DEFAULT TRUE NOT NULL;
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
-- 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
|
||||
DROP COLUMN score,
|
||||
ADD COLUMN score boolean DEFAULT FALSE NOT NULL,
|
||||
DROP COLUMN upvotes,
|
||||
ADD COLUMN upvotes boolean DEFAULT TRUE NOT NULL,
|
||||
DROP COLUMN downvotes,
|
||||
ADD COLUMN downvotes boolean DEFAULT TRUE NOT NULL,
|
||||
DROP COLUMN upvote_percentage,
|
||||
ADD COLUMN upvote_percentage boolean DEFAULT FALSE NOT NULL;
|
||||
|
Loading…
Reference in a new issue