mirror of https://github.com/LemmyNet/lemmy.git
Forgot to regenerate the rows.
parent
b9e49d63cd
commit
260d235027
|
@ -8,3 +8,13 @@ ALTER TABLE local_user_vote_display_mode
|
||||||
ALTER COLUMN score SET DEFAULT FALSE,
|
ALTER COLUMN score SET DEFAULT FALSE,
|
||||||
ALTER COLUMN upvote_percentage 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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue