From bf60b89334b33f14330151856d65d41efe462f0a Mon Sep 17 00:00:00 2001 From: ahnsugyeong Date: Thu, 14 Mar 2024 03:15:36 +0900 Subject: [PATCH] =?UTF-8?q?:card=5Ffile=5Fbox:=20Feat:=20=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V1__change_NN_to_N1_relationship.sql | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/Briefing-Common/src/main/resources/db/migration/V1__change_NN_to_N1_relationship.sql b/core/Briefing-Common/src/main/resources/db/migration/V1__change_NN_to_N1_relationship.sql index 6b7ca25..50b3200 100644 --- a/core/Briefing-Common/src/main/resources/db/migration/V1__change_NN_to_N1_relationship.sql +++ b/core/Briefing-Common/src/main/resources/db/migration/V1__change_NN_to_N1_relationship.sql @@ -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; \ No newline at end of file +SET a.briefing_id = ba.briefing_id; \ No newline at end of file