Skip to content

[Refactor] DB Enum 사용을 위한 annotation 추가#238

Open
given-dragon wants to merge 3 commits into
developfrom
refactor/db_enum_mapping
Open

[Refactor] DB Enum 사용을 위한 annotation 추가#238
given-dragon wants to merge 3 commits into
developfrom
refactor/db_enum_mapping

Conversation

@given-dragon
Copy link
Copy Markdown
Contributor

@given-dragon given-dragon commented Jul 27, 2025

관련 이슈

작업한 내용

  • column definition, JdbcTypeCode 추가
  • varchar 타입 제거로 인한 length 제약조건 제거

PR 포인트

  • DB에서도 타입을 변경해줘야합니다~
-- 안전한 변경을 위해 기존 제약조건 해제
alter table content alter column content_assignee drop default;
alter table content alter column content_assignee drop not null;

-- 컬럼 타입 변경
alter table content
alter column content_assignee
    type content_assignee_enum
    using content_assignee::content_assignee_enum;

-- 컬럼 제약조건 추가
alter table content alter column content_assignee set default 'ME';
alter table content alter column content_assignee set not null;

@github-project-automation github-project-automation Bot moved this to 👍Approved in NEXT STEP [BE] Jul 27, 2025
@given-dragon
Copy link
Copy Markdown
Contributor Author

지속되는 테스트 실패로 일단 보류

@given-dragon given-dragon moved this from 👍Approved to 🔄In progress in NEXT STEP [BE] Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔄In progress

Development

Successfully merging this pull request may close these issues.

DB Enum을 사용할 수 있도록 Entity annotation 추가

2 participants