Skip to content

Commit

Permalink
🗃️ Feat: 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnsugyeong committed Mar 13, 2024
1 parent 80d8ca3 commit bf60b89
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
ALTER TABLE article ADD COLUMN briefing_id BIGINT;

-- 기존 briefing_article 데이터를 기반으로 article 테이블의 briefing_id 업데이트
UPDATE article a
JOIN briefing_article ba ON a.id = ba.article_id
SET a.briefing_id = ba.briefing_id;

-- briefing_article 테이블 제거
DROP TABLE briefing_article;
SET a.briefing_id = ba.briefing_id;

0 comments on commit bf60b89

Please sign in to comment.