chore(db): 운영 DB 마이그레이션 스크립트 추가 - #99
Merged
Merged
Conversation
- item DB에 룰렛 보상·참여 이력 테이블과 제약조건 추가 - 무료·스페셜 룰렛 보상 확률 및 재고 초기 데이터 추가 - 공지 테이블을 user DB에 생성하고 기존 item DB 데이터 이전
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.
개요
운영 환경의
ddl-auto=validate설정에서 신규 엔티티로 인한 애플리케이션 배포 실패를 방지하기 위해 DB 마이그레이션 스크립트를 추가합니다.변경 사항
1. 룰렛 테이블 생성
comatching_item.roulette_reward테이블 생성comatching_item.roulette_history테이블 생성2. 룰렛 초기 데이터 추가
3. 공지 테이블 이전
comatching_user.notice테이블 생성comatching_item.notice데이터를 user DB로 복사INSERT IGNORE적용적용 순서
20260912_01_create_roulette_tables.sql실행20260912_02_migrate_notice_to_user.sql실행테스트
참고
룰렛 초기 데이터는 중복 삽입을 방지하지 않으므로 운영 환경에서 최초 1회만 실행해야 합니다.