Skip to content

fix: Flyway V1 마이그레이션 체크섬 복구#130

Merged
parkjuyeong0312 merged 1 commit into
mainfrom
dev
Jun 6, 2026
Merged

fix: Flyway V1 마이그레이션 체크섬 복구#130
parkjuyeong0312 merged 1 commit into
mainfrom
dev

Conversation

@parkjuyeong0312

@parkjuyeong0312 parkjuyeong0312 commented Jun 6, 2026

Copy link
Copy Markdown
Member

변경 내용

  • checkstyle에 맞춰 코드 스타일을 포메팅하며 V1 마이그레이션 파일을 수정한 내역을 확인
  • 원본 형식으로 돌림. 배포환경에서는 flyway 코드 값을 수정하면 안됨. 체크섬으로 관리해서, 수정이 일어나면 불일치가 발생하여 마이그레이션 실패함.

Summary by CodeRabbit

  • Chores
    • 데이터베이스 초기화 스크립트의 포맷을 개선하고 구조를 최적화했습니다. 서비스의 모든 데이터 저장 및 관리 기능은 이전과 완전히 동일하게 작동하며, 코드의 가독성과 유지보수성이 향상되었습니다.

@parkjuyeong0312 parkjuyeong0312 merged commit a7ac3b9 into main Jun 6, 2026
3 of 4 checks passed
@coderabbitai

coderabbitai Bot commented Jun 6, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d4ebb113-0a5b-431a-b1e3-103a6d826d42

📥 Commits

Reviewing files that changed from the base of the PR and between e4faf55 and 0270f97.

📒 Files selected for processing (1)
  • src/main/resources/db/migration/V1__init.sql

📝 Walkthrough

Walkthrough

V1__init.sql Flyway 마이그레이션 파일에서 users, rooms, room_members, bookmark_categories, bookmarks, schedules, schedule_items 테이블의 CREATE TABLE 구문과 제약 선언, 인덱스 정의를 재포맷 및 정렬했습니다. 스키마 기능(컬럼, 제약, 인덱스)은 동일하게 유지됩니다.

Changes

Database Schema Formatting

Layer / File(s) Summary
User and room management schema formatting
src/main/resources/db/migration/V1__init.sql
users, rooms, room_members 테이블의 CREATE TABLE 정의와 고유 제약(이메일, 닉네임, 초대코드), 외래키 제약을 포맷/정렬 변경했습니다.
Bookmarks feature schema formatting
src/main/resources/db/migration/V1__init.sql
bookmark_categories, bookmarks 테이블의 CREATE TABLE 정의, 복합 고유/외래키 제약, 및 인덱스(idx_bookmarks_room_id, idx_bookmarks_category_id, idx_bookmarks_google_place_id)를 포맷/정렬 변경했습니다.
Schedules feature schema formatting
src/main/resources/db/migration/V1__init.sql
schedules, schedule_items 테이블의 CREATE TABLE 정의와 복합 고유 제약(room_id+day_number, room_id+date)을 포맷/정렬 변경했습니다.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • how-about-us/backend-server#81: 동일한 V1__init.sql 마이그레이션 파일에서 schedule_items 및 제약 정의를 수정하여 초기 스키마 생성 로직에 직접 영향을 주는 관련 변경입니다.

Suggested reviewers

  • minbros

Poem

🐰 데이터 스키마, 예쁘게 정렬하고
테이블들은 반짝이게 포맷하고
제약과 인덱스, 가지런히 놓아두니
마이그레이션 파일이 한층 깔끔하네요!
- CodeRabbit가 보내는 정렬의 기쁨


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

sonarqubecloud Bot commented Jun 6, 2026

Copy link
Copy Markdown

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant