mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-17 01:44:00 +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;
|
|
|