From 04193ecaa64b6383af1f313232d75be1efea3825 Mon Sep 17 00:00:00 2001 From: heoboseong7 Date: Mon, 26 Sep 2022 22:01:13 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[Fix]=20=EC=9D=B8=EC=82=AC=EC=9D=B4?= =?UTF-8?q?=ED=8A=B8=20=EB=93=B1=EB=A1=9D=20API=20url=20->=20link=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ccc/keeweapi/api/insight/InsightControllerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keewe-api/src/test/java/ccc/keeweapi/api/insight/InsightControllerTest.java b/keewe-api/src/test/java/ccc/keeweapi/api/insight/InsightControllerTest.java index 6a473f8c..78bbc15c 100644 --- a/keewe-api/src/test/java/ccc/keeweapi/api/insight/InsightControllerTest.java +++ b/keewe-api/src/test/java/ccc/keeweapi/api/insight/InsightControllerTest.java @@ -42,14 +42,14 @@ public void setup(RestDocumentationContextProvider provider) { @DisplayName("인사이트 등록 API") void create_insight_test() throws Exception { String contents = "내용내용내용내용내용내용내용내용내용내용내용내용내용내용내용내용"; - String url = "https://tech.kakao.com/2022/03/17/2022-newkrew-onboarding-codereview/"; + String link = "https://tech.kakao.com/2022/03/17/2022-newkrew-onboarding-codereview/"; boolean participation = false; Long drawerId = 1L; JSONObject insightCreateRequest = new JSONObject(); insightCreateRequest .put("contents", contents) - .put("url", url) + .put("link", link) .put("participation", participation) .put("drawerId", drawerId); @@ -69,7 +69,7 @@ void create_insight_test() throws Exception { headerWithName("Authorization").description("유저의 JWT")) .requestFields( fieldWithPath("contents").description("인사이트의 내용. 최대 300자, 문자 제한 없음"), - fieldWithPath("url").description("등록한 링크의 url. 최대 2000자"), + fieldWithPath("link").description("등록한 링크의 link. 최대 2000자"), fieldWithPath("participation").description("현재 진행중인 챌린지에 참가할 지 여부"), fieldWithPath("drawerId").description("서랍의 ID. 선택").optional()) .responseFields( From 5e206394fac3130a9aa132160bbd273cba9e8632 Mon Sep 17 00:00:00 2001 From: heoboseong7 Date: Mon, 26 Sep 2022 22:01:52 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[Fix]=20issue-104=5Fdml=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- keewe-domain/src/main/resources/dml/issue-104_dml.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keewe-domain/src/main/resources/dml/issue-104_dml.sql b/keewe-domain/src/main/resources/dml/issue-104_dml.sql index 9345f921..eb9b8779 100644 --- a/keewe-domain/src/main/resources/dml/issue-104_dml.sql +++ b/keewe-domain/src/main/resources/dml/issue-104_dml.sql @@ -3,8 +3,8 @@ ALTER TABLE `insight` ALTER TABLE `reaction` ADD COLUMN created_at DATETIME(6) NOT NULL, - ADD COLUMN updated_at DATETIME(6) NOT NULL, + ADD COLUMN updated_at DATETIME(6) NOT NULL; -ALTER TABLE `reaction_aggreation` +ALTER TABLE `reaction_aggregation` ADD COLUMN created_at DATETIME(6) NOT NULL, - ADD COLUMN updated_at DATETIME(6) NOT NULL, \ No newline at end of file + ADD COLUMN updated_at DATETIME(6) NOT NULL; \ No newline at end of file