Skip to content

Commit baf9d03

Browse files
committed
CLAP-196 Add: 제약 조건 수정을 위한 스크립트 추가
1 parent 6e15bba commit baf9d03

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

src/main/java/clap/server/adapter/outbound/persistense/mapper/ApiLogPersistenceMapper.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,4 @@ public MemberLog mapMemberLogEntityToDomain(MemberLogEntity memberLogEntity) {
7878
: null)
7979
.build();
8080
}
81-
82-
public ApiLog mapLogEntityToDomain(ApiLogEntity logEntity) {
83-
return ApiLog.builder()
84-
.logId(logEntity.getLogId())
85-
.clientIp(logEntity.getClientIp())
86-
.requestUrl(logEntity.getRequestUrl())
87-
.requestMethod(logEntity.getRequestMethod().name())
88-
.statusCode(logEntity.getStatusCode())
89-
.customStatusCode(logEntity.getCustomStatusCode())
90-
.requestBody(logEntity.getRequestBody())
91-
.responseBody(logEntity.getResponseBody())
92-
.requestAt(logEntity.getRequestAt())
93-
.logStatus(logEntity.getLogStatus())
94-
.build();
95-
}
9681
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE api_log
2+
MODIFY COLUMN custom_status_code VARCHAR(255) NULL;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ALTER TABLE api_log
2+
MODIFY COLUMN log_status ENUM('LOGIN', 'REQUEST_CREATED', 'REQUEST_UPDATED', 'REQUEST_CANCELLED',
3+
'REQUEST_APPROVED', 'ASSIGNER_CHANGED', 'COMMENT_ADDED',
4+
'COMMENT_UPDATED', 'STATUS_CHANGED', 'TASK_VIEWED') NOT NULL;

0 commit comments

Comments
 (0)