-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Feature: DB 마이그레이션을 위한 flyway 도입 (#201)
* ➕ Chore: Flyway 의존성 추가 * 🔧 Chore: application.yml flyway 설정 git status * ✨ Feat: DB 마이그레이션 스크립트 작성 * 🗃️ Feat: 스크립트 수정
- Loading branch information
1 parent
f7a2466
commit beeb6eb
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
spring: | ||
flyway: | ||
enabled: true | ||
baseline-on-migrate: true | ||
baseline-version: 0 | ||
|
||
jpa: | ||
hibernate: | ||
ddl-auto: update |
3 changes: 3 additions & 0 deletions
3
core/Briefing-Common/src/main/resources/db/migration/V1__change_NN_to_N1_relationship.sql
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
UPDATE article a | ||
JOIN briefing_article ba ON a.id = ba.article_id | ||
SET a.briefing_id = ba.briefing_id; |