Skip to content

Conversation

@songsunkook
Copy link
Owner

@songsunkook songsunkook commented Oct 17, 2025

Migration Progress

현재 단계: 5단계 - Clean Up (코드 정리)

수행 작업

  • Feature Flag 완전 제거
  • Dual Write 제거 (신규 스키마만 사용)
  • firstName, lastName 필드 제거

도메인 모델 정리

// User.java - 최종 정리된 형태
public class User {

    @Column(name = "full_name")
    private String fullName;  // 신규 스키마만 유지

    // 기존 firstName, lastName 필드 제거
    
    public String getFullName() {
        return fullName;  // 단순 getter로 변경
    }
    
    public User(String fullName, String email) {
        this.fullName = fullName;
        this.email = email;
    }
    
    public void updateName(String fullName) {
        this.fullName = fullName;
    }
}

데이터 정합성

  • 신규 스키마만 사용: fullName 필드만 사용
  • 코드 단순화: Feature Flag 로직 제거

5단계 완료 후 상태

  • 모든 읽기/쓰기가 full_name 컬럼만 사용
  • Feature Flag 관련 코드 제거
  • 기존 스키마(first_name, last_name) 관련 코드 제거
  • 깔끔하고 단순한 코드베이스

다음 단계

  1. Database Schema 정리: first_name, last_name 컬럼을 실제 데이터베이스에서 제거

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