lemmy/migrations/2024-02-12-211114_add_vote_display_mode_setting/up.sql
2024-02-27 10:00:29 -05:00

14 lines
318 B
SQL

CREATE TYPE vote_display_mode_enum AS enum (
'Full',
'UpvoteAndDownvote',
'ScoreAndDownvote',
'ScoreAndUpvotePercentage',
'UpvotePercentage',
'Score',
'HideAll'
);
ALTER TABLE local_user
ADD COLUMN vote_display_mode vote_display_mode_enum DEFAULT 'ScoreAndUpvotePercentage' NOT NULL;