fix(migration): 빈 DB에서 프리셋 행 적재 실패 - #458
Merged
Merged
Conversation
- feature_module 행은 시드가 넣는다 — 마이그레이션만 돌린 빈 DB(CI 검증)에는 없어 FK 위반으로 배포 검증이 멈췄다 - 있는 모듈만 넣도록(WHERE EXISTS) 바꾸고, 시드(access_control.csv)에도 프리셋 74행을 넣어 새로 깔아도 같게 - 빈 DB에서 migrate deploy → seed → migrate diff 까지 로컬로 확인 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Closes #457
원인
기능모듈(
feature_module) 행은 시드가 넣는다. 배포 검증은 마이그레이션만 돌린 빈 DB에서 도는데, 프리셋 기본 구성 INSERT 가 아직 없는 모듈을 가리켜 외래키에 걸렸다(P3018 / 23503). 검증이 멈춰 운영 배포 단계는 시작되지 않았다 — 운영은 이전 버전 그대로.수정
WHERE EXISTS (feature_module)— 있는 모듈만 넣는다db/seed/access_control.csv에 프리셋 74행 추가 — 새로 깔아도 자리 구성이 같다검증(로컬 빈 DB, CI 와 같은 순서)
prisma migrate deploy두 번 → 성공·재실행 안전migrate status최신 ·migrate diff --exit-code차이 없음db:seed뒤 access_control: role 29행 · preset 74행🤖 Generated with Claude Code