Skip to content

[WTH-508] 일정·세션 내용 길이 제한 완화 - #106

Closed
hyxklee wants to merge 3 commits into
devfrom
feat/WTH-508-event-session-content-text
Closed

hyxklee wants to merge 3 commits into
devfrom
feat/WTH-508-event-session-content-text

Conversation

@hyxklee

@hyxklee hyxklee commented Sep 19, 2026

Copy link
Copy Markdown
Member

배경

V3 → V4 마이그레이션(WTH-508)의 선행 작업입니다.

V3 운영 DB 실측 결과 event.content 최대 길이가 632자로, V4의 varchar(500) 한도를 초과합니다.
그대로 마이그레이션하면 본문이 잘립니다.

컬럼 V3 실측 최대 변경 전 V4 한도
event.content 632 500
meeting.contentsession.content 431 500

session.content는 현재 통과하지만 여유가 69자뿐이고, 컷오버까지 V3가 계속 운영되므로 함께 조정했습니다.
Post.content가 이미 TEXT라 일관성도 맞습니다.

변경 내용

1. 엔티티 컬럼 → TEXT (d17ce27)

- @Column(length = 500)
+ @Column(columnDefinition = "TEXT")

2. 요청 DTO 길이 제한 500 → 1000자 (39fc573)

엔티티만 넓히면 마이그레이션된 632자 일정을 수정할 때 @Size(max = 500)에 걸려 저장이 실패합니다.
참고로 V3에는 해당 필드에 길이 제약이 없었습니다 (@Size는 댓글 300자에만 존재, DB는 TEXT).
무제한 대신 1000자로 제한을 두되 V3 데이터를 충분히 덮도록 했습니다.

  • ScheduleSaveRequest, ScheduleUpdateRequest
  • SessionCreateRequest, SessionUpdateRequest

3. Flyway 마이그레이션 V15 (6b780d8)

ALTER TABLE event   MODIFY COLUMN content TEXT;
ALTER TABLE session MODIFY COLUMN content TEXT;

varchar(500)TEXT는 넓히는 방향이라 기존 데이터는 보존됩니다.

검증

  • ./gradlew ktlintCheck compileKotlin 통과

관련

  • docs/plan/v3-to-v4-migration-plan.md §2-4, §11

🤖 Generated with Claude Code

https://claude.ai/code/session_01FUfuUw4qjjHWfZKiyqgADJ

hyxklee and others added 2 commits September 19, 2026 11:58
V3 마이그레이션 대상 데이터의 event.content 최대 길이가 632자로
기존 varchar(500) 한도를 초과해 잘림이 발생한다.
session.content(최대 431자)도 여유가 적어 함께 TEXT로 통일한다.

Refs: WTH-508

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FUfuUw4qjjHWfZKiyqgADJ
엔티티 컬럼을 TEXT로 넓혔으나 요청 DTO가 500자로 막고 있어,
마이그레이션된 632자 일정을 수정할 때 검증에 걸린다.
V3는 해당 필드에 길이 제약이 없었다.

Refs: WTH-508

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FUfuUw4qjjHWfZKiyqgADJ
@coderabbitai

coderabbitai Bot commented Sep 19, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Flyway로 스키마를 관리하므로 엔티티 변경에 대응하는 V15를 추가한다.
prod는 ddl-auto가 validate라 마이그레이션 없이는 기동에 실패한다.

Refs: WTH-508

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FUfuUw4qjjHWfZKiyqgADJ
@hyxklee

hyxklee commented Sep 19, 2026

Copy link
Copy Markdown
Member Author

핫픽스 PR #108에 흡수되었습니다. 동일 커밋이 두 경로로 들어가면 main→dev 역머지에서 혼란이 생기므로 닫습니다.

@hyxklee hyxklee closed this Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant