Refactor : Change all String columns to TEXT type#46
Merged
Conversation
Collaborator
|
이제 안쓰는데 어떡하죠,,,, |
hongjungwook1
added a commit
that referenced
this pull request
Nov 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
연관 이슈
close #44
📁 작업 내용
전체 엔티티의 varChar타입 컬럼을 TEXT 타입으로 변경했습니다.
🖥 구현 결과 (선택)
문제
ERROR: value too long for type character varying(255)해결 방법
1. DDL을 통한 데이터베이스 스키마 변경
먼저 VARCHAR 타입 컬럼들을 조회
생성된 ALTER 문을 실행하여 모든 VARCHAR 컬럼을 TEXT로 변경
2. JPA 엔티티 수정
모든 String 필드에
@Column(columnDefinition = "TEXT")추가:3. VARCHAR로 되돌리지 않는 이유
varlena구조로 저장대상 엔티티 (총 9개):
✔ 리뷰 요구사항
@Column(columnDefinition = "TEXT")가 일관되게 적용되었는지 확인 부탁드립니다.📁 기타 사항