Conversation
인덱스 생성 시 MySQL 문법 호환성 문제로 인해 V010을 단순화했습니다. - V010: 컬럼 제거 및 테이블 생성만 수행 - V011: 조회 성능 최적화용 인덱스 생성 (별도 마이그레이션으로 분리) 이미 인덱스가 존재하는 경우 MySQL 8.0과의 호환성을 고려하여 V011에서는 CREATE INDEX만 수행하며, 중복 생성 시에는 운영팀 수동 개입이 필요합니다. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
MySQL 은 DROP COLUMN IF EXISTS / CREATE INDEX IF NOT EXISTS 를 지원하지 않는다 (MariaDB 전용 확장). 이 구문 때문에 V010 이 운영 DB 에서 실패했고, flyway_schema_history 에 남은 실패 이력이 validate 단계에서 애플리케이션 부팅을 차단해 배포와 롤백이 모두 실패했다. - V010: DROP COLUMN 문 제거. last_activity_read_at 은 ProjectMember 엔티티와 운영 DB 어디에도 없어 애초에 불필요했다. - V011: 삭제. 대상 인덱스는 운영 DB 에 이미 존재하고 FK(project_id -> project.id) 를 떠받치고 있어 제거할 수 없으므로 마이그레이션 대상에서 제외한다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
fix: V010 MySQL 미지원 조건부 DDL 제거로 Flyway 마이그레이션 실패 해결
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 관련 이슈 (Related Issue)
📝 작업 내용
develop브랜치를main에 병합해 운영에 배포합니다. 이 PR에서 새로 작성한 코드는 없고, 아래 PR들이 함께 나갑니다.✅ PR 체크리스트