Forgot to regenerate the rows.

change_vote_display_mode_defaults
Dessalines 2024-04-05 11:50:31 -04:00
parent b9e49d63cd
commit 260d235027
1 changed files with 10 additions and 0 deletions

View File

@ -8,3 +8,13 @@ ALTER TABLE local_user_vote_display_mode
ALTER COLUMN score SET DEFAULT FALSE,
ALTER COLUMN upvote_percentage SET DEFAULT FALSE;
-- Regenerate the rows with the new default
DELETE FROM local_user_vote_display_mode;
-- Re-insert them
INSERT INTO local_user_vote_display_mode (local_user_id)
SELECT
id
FROM
local_user;