Forgot to regenerate the rows.

This commit is contained in:
Dessalines 2024-04-05 11:50:31 -04:00
parent b9e49d63cd
commit 260d235027

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;