mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 05:11:03 +00:00
Forgot to regenerate the rows.
This commit is contained in:
parent
b9e49d63cd
commit
260d235027
1 changed files with 10 additions and 0 deletions
|
@ -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 a new issue