Skip to content

[Refactor] S3 객체 이미지 URL - 버킷 이름 변경 #19

Description

@pykido

🛠️ 리팩토링 설명

AWS 계정 이동으로 인해 기존 S3 버킷 이름이 변경되어, 데이터베이스에 저장된 전체 이미지 URL들을 수정해야 하는 상황입니다. 향후 유사한 문제를 방지하기 위해 객체 키만 저장하도록 구조를 개선합니다.
테스트 서버 우선 적용 후 운영 서버에 반영할 예정입니다!

🚀 개선 방향

  • Before: 전체 S3 URL 저장
    https://old-bucket.s3.amazonaws.com/images/profile/123.jpg
  • After: 객체 키만 저장
    images/profile/123.jpg

☑️ TODO LIST

1. 테스트코몬DB 데이터 마이그레이션

  • article 본문 내 이미지 매핑 - article_image 테이블의 이미지를 article 본문의 ? 플레이스홀더에 매핑
  • article_image.image_url 필드 업데이트
  • member.image_url 필드 업데이트
  • team.image_url 필드 업데이트
  • article_image 테이블 DROP

2. 운영서버DB 데이터 마이그레이션

  • article 본문 내 이미지 매핑 - article_image 테이블의 이미지를 article 본문의 ? 플레이스홀더에 매핑
  • article_image.image_url 필드 업데이트
  • member.image_url 필드 업데이트
  • team.image_url 필드 업데이트
  • article_image 테이블 DROP

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions