mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 19:31:33 +00:00
15 lines
230 B
SQL
15 lines
230 B
SQL
ALTER TABLE comment_like
|
|
ADD COLUMN post_id int;
|
|
|
|
UPDATE
|
|
comment_like
|
|
SET
|
|
post_id = comment.post_id
|
|
FROM
|
|
comment
|
|
WHERE
|
|
comment_id = comment.id;
|
|
|
|
ALTER TABLE comment_like
|
|
ALTER COLUMN post_id SET NOT NULL;
|
|
|