Skip to content

Comments

[fix] profile_image 컬럼 VARCHAR(255) → TEXT 변경#86

Merged
k3vin7 merged 1 commit intomainfrom
fix/user
Feb 21, 2026
Merged

[fix] profile_image 컬럼 VARCHAR(255) → TEXT 변경#86
k3vin7 merged 1 commit intomainfrom
fix/user

Conversation

@k3vin7
Copy link
Contributor

@k3vin7 k3vin7 commented Feb 21, 2026

프로필 이미지 업데이트 시 S3 URL이 255자를 초과하여 발생하던 500 에러 수정

@gemini-code-assist
Copy link

Summary of Changes

Hello @k3vin7, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 풀 리퀘스트는 프로필 이미지 업데이트 시 발생하던 500 에러를 해결하기 위해 데이터베이스 스키마를 수정합니다. 기존 profile_image 컬럼의 길이가 S3 URL을 저장하기에 부족하여 발생했던 문제를 해결하고자, 해당 컬럼의 데이터 타입을 더 긴 문자열을 저장할 수 있는 TEXT로 변경하는 마이그레이션 스크립트를 추가했습니다. 이 변경으로 인해 사용자들이 긴 프로필 이미지 URL을 문제없이 저장할 수 있게 됩니다.

Highlights

  • 데이터베이스 스키마 변경: 사용자 테이블의 profile_image 컬럼 타입을 VARCHAR(255)에서 TEXT로 변경했습니다.
  • 버그 수정: S3 URL이 255자를 초과하여 발생하던 프로필 이미지 업데이트 시의 500 에러를 해결했습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/main/resources/db/migration/V6__alter_profile_image_to_text.sql
    • 사용자 테이블의 profile_image 컬럼 타입을 TEXT로 변경하는 SQL 마이그레이션 스크립트가 추가되었습니다.
Activity
  • 현재까지 풀 리퀘스트에 대한 활동은 없습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

S3 URL 길이 제한으로 인한 500 에러를 해결하기 위해 profile_image 컬럼의 타입을 TEXT로 확장한 것은 적절한 조치입니다. 다만, DB 스키마 변경 사항이 JPA 엔티티(User.java)에 반영되지 않아 발생할 수 있는 런타임 오류나 스키마 불일치 문제를 방지하기 위해 엔티티 코드 수정이 병행되어야 합니다.

@@ -0,0 +1 @@
ALTER TABLE users MODIFY COLUMN profile_image TEXT;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

데이터베이스 컬럼 타입을 TEXT로 변경함에 따라, User 엔티티(src/main/java/com/daramg/server/user/domain/User.java)의 profileImage 필드에도 @column(columnDefinition = "TEXT") 설정을 추가해야 합니다. 현재 제공된 User.java 소스 코드에는 이 변경 사항이 반영되어 있지 않습니다. Hibernate의 스키마 유효성 검사(validate) 기능을 사용하는 환경이라면 애플리케이션 실행 시 오류가 발생할 수 있으며, 설정이 누락될 경우 의도치 않은 동작이 발생할 수 있으므로 엔티티 클래스 수정을 권장합니다.

@k3vin7 k3vin7 merged commit 7373fa3 into main Feb 21, 2026
1 check passed
@k3vin7 k3vin7 deleted the fix/user branch February 21, 2026 13:27
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