From 2a60d913ccb31fbd7b17b47d867ff657d7e1357d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 24 Feb 2024 18:20:16 -0500 Subject: [PATCH] Adding ScoreAndDownvote display mode. --- crates/db_schema/src/lib.rs | 2 ++ .../2024-02-12-211114_add_vote_display_mode_setting/up.sql | 1 + 2 files changed, 3 insertions(+) diff --git a/crates/db_schema/src/lib.rs b/crates/db_schema/src/lib.rs index 7a7f0b038..a9946ef5f 100644 --- a/crates/db_schema/src/lib.rs +++ b/crates/db_schema/src/lib.rs @@ -173,6 +173,8 @@ pub enum PostListingMode { pub enum VoteDisplayMode { /// Shows the score, upvotes, and downvotes. Full, + /// Shows the score, and downvotes. + ScoreAndDownvote, /// Shows the score, and upvote percentage. (the default setting) ScoreAndUpvotePercentage, /// Shows the upvote percentage only. diff --git a/migrations/2024-02-12-211114_add_vote_display_mode_setting/up.sql b/migrations/2024-02-12-211114_add_vote_display_mode_setting/up.sql index 20af5535e..1f8c5be8d 100644 --- a/migrations/2024-02-12-211114_add_vote_display_mode_setting/up.sql +++ b/migrations/2024-02-12-211114_add_vote_display_mode_setting/up.sql @@ -1,5 +1,6 @@ CREATE TYPE vote_display_mode_enum AS enum ( 'Full', + 'ScoreAndDownvote', 'ScoreAndUpvotePercentage', 'UpvotePercentage', 'Score',