Skip to content

Commit

Permalink
refactor: flyway, ddl auto 설정 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
kevstevie committed Nov 1, 2023
1 parent f68d536 commit 9cc0fa5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 5 additions & 4 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ spring:
- classpath:/yigongil-private/application-prod.yml
profiles:
active: local
jpa:
hibernate:
ddl-auto: validate

springdoc:
api-docs:
Expand All @@ -14,8 +17,10 @@ springdoc:
url: "/api-docs"
path: "/api"
display-request-duration: true

server:
shutdown: graceful

---

spring:
Expand All @@ -26,8 +31,6 @@ spring:
url: jdbc:h2:mem:~/testdb;MODE=MySQL
driver-class-name: org.h2.Driver
jpa:
hibernate:
ddl-auto: create
properties:
hibernate:
format_sql: true
Expand All @@ -36,8 +39,6 @@ spring:
h2:
console:
enabled: true
flyway:
enabled: false

logging:
level:
Expand Down
4 changes: 0 additions & 4 deletions backend/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ spring:
hibernate:
format_sql: true
show_sql: true
hibernate:
ddl-auto: update
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
flyway:
enabled: false

logging:
level:
Expand Down

0 comments on commit 9cc0fa5

Please sign in to comment.