Skip to content

fix: prod flyway 마이그레이션 누락 및 V14 스키마 하드코딩 수정#398

Merged
pooreumjung merged 2 commits into
developfrom
fix/#397-flyway-out-of-order-and-v14-schema
Jul 9, 2026
Merged

fix: prod flyway 마이그레이션 누락 및 V14 스키마 하드코딩 수정#398
pooreumjung merged 2 commits into
developfrom
fix/#397-flyway-out-of-order-and-v14-schema

Conversation

@pooreumjung

Copy link
Copy Markdown
Member

#️⃣ Issue Number

📝 요약(Summary)

  • V14__populate_i18n_partnership_description.sql의 모든 UPDATE 문(506줄)에 하드코딩되어 있던 dev.partnership 스키마 접두어를 partnership으로 수정. prod 배포 시 스키마명이 dev가 아니면 마이그레이션이 실패하거나, 동일 인스턴스에 dev 스키마가 존재할 경우 엉뚱한 스키마가 갱신되는 위험이 있었음.
  • main(prod) DB의 flyway_schema_history에는 V13, V15가 이미 적용되어 있으나 V10V12, V14는 적용되지 않은 상태였음. application-prod.ymlflyway.out-of-order: true를 임시로 추가하여, 다음 prod 배포 시 누락된 V10V12, V14, V16, V17이 순서 검증 실패 없이 백필되도록 함.

💬 공유사항 to 리뷰어

  • out-of-order: true는 main의 누락된 마이그레이션을 한 번 따라잡기 위한 임시 설정입니다. prod 배포 후 flyway_schema_history가 V17까지 정상 적용된 것을 확인하면, 후속 PR에서 해당 설정을 제거(원복)할 예정입니다.
  • V14 수정으로 인해 prod에 실제로 반영되는 partnership 다국어 설명 데이터가 이번에 처음 채워집니다. 배포 전 prod DB의 partnership 테이블 스키마명을 한 번 더 확인해주시면 좋을 것 같습니다.
  • 로컬/CI에서 실제 마이그레이션 실행 테스트는 하지 않았습니다. prod와 동일한 flyway_schema_history 상태(V13, V15만 적용된 상태)를 재현해 out-of-order 백필이 의도대로 동작하는지 별도 검증이 필요합니다.

✅ PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • 커밋 메시지 컨벤션에 맞게 작성했습니다.
  • 변경 사항에 대한 테스트를 했습니다.(버그 수정/기능에 대한 테스트).

pooreumjung and others added 2 commits July 10, 2026 01:34
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@pooreumjung pooreumjung added the fix 고치기 label Jul 9, 2026
@pooreumjung pooreumjung self-assigned this Jul 9, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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!

본 PR은 운영 환경 DB의 Flyway 마이그레이션 상태 불일치를 해결하기 위한 조치입니다. 누락된 마이그레이션 이력을 복구하기 위해 임시로 out-of-order 설정을 활성화하고, 기존 스크립트 내 하드코딩된 스키마 참조를 수정하여 배포 안정성을 확보하고자 합니다.

Highlights

  • Flyway 설정 변경: 운영 환경에서 누락된 마이그레이션 스크립트를 순차적으로 적용하기 위해 application-prod.yml에 flyway.out-of-order: true 설정을 임시로 추가했습니다.
  • 마이그레이션 스크립트 수정: V14 마이그레이션 파일 내 하드코딩된 dev.partnership 스키마 접두어를 partnership으로 수정하여 운영 환경에서의 스키마 충돌 및 오류 가능성을 제거했습니다.
New Features

🧠 You can now enable Memory (public preview) 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.

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 the 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 counterproductive. 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.


누락된 버전 찾아 헤매다니, Flyway 순서 꼬여 고민하네. out-of-order 설정 한 줄 더하니, 이제야 배포 길 열리겠구나.

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.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

이번 풀 리퀘스트에서는 application-prod.yml 파일에 Flyway의 out-of-order: true 설정을 추가하였습니다. 이에 대해 해당 설정이 임시 조치이므로 배포 후 제거 대상임을 명시할 수 있도록 IntelliJ 기본 형식의 FIXME 주석을 추가하라는 피드백이 제공되었습니다.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

enabled: true
baseline-on-migrate: true
baseline-version: 1
out-of-order: true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

[Reviewer, 2026-07-09] out-of-order 설정은 임시 조치이므로 배포 후 제거 대상임을 명시하기 위해 IntelliJ 기본 형식의 FIXME 주석을 추가해 주시기 바랍니다.

References
  1. 임시 설정이나 잠재적 문제가 있는 부분에는 IntelliJ 기본 형식의 FIXME 주석을 사용해야 합니다. (link)

@pooreumjung pooreumjung merged commit 098ca6f into develop Jul 9, 2026
1 check passed
@pooreumjung pooreumjung deleted the fix/#397-flyway-out-of-order-and-v14-schema branch July 9, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 고치기

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: main 배포 시 flyway 마이그레이션 실패 위험 및 V14 스키마 하드코딩 버그

1 participant