DB 컬럼 마이그레이션 추가 및 API 요청 저장 처리 수정

This commit is contained in:
현성필
2023-10-25 15:19:20 +09:00
parent 5770642f71
commit 43c4e993cc
3 changed files with 29 additions and 18 deletions
@@ -37,6 +37,10 @@ public class ApiRequestMigrationService {
try (Statement statement = connection.createStatement()) {
statement.execute(sql2);
}
String sql3 = String.format("ALTER TABLE %s ALTER COLUMN %s %s;", "API_REQUEST_INFO", "REQUEST_BODY", "CLOB");
try (Statement statement = connection.createStatement()) {
statement.execute(sql3);
}
} catch (Exception e) {
e.printStackTrace();
}