Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ dependencies {

developmentOnly 'org.springframework.boot:spring-boot-devtools'

implementation 'org.flywaydb:flyway-core'
implementation 'org.flywaydb:flyway-database-postgresql'

runtimeOnly 'org.postgresql:postgresql'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.5'
Expand All @@ -67,6 +70,8 @@ dependencies {

testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:postgresql'

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
Expand Down
9 changes: 8 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ spring:
redis:
host: ${REDIS_HOST}
port: ${REDIS_PORT}
flyway:
enabled: true
locations: classpath:db/migration
baseline-on-migrate: ${FLYWAY_BASELINE_ON_MIGRATE:false}
baseline-version: 1
Comment thread
coderabbitai[bot] marked this conversation as resolved.
out-of-order: false
validate-on-migrate: true
jpa:
hibernate:
ddl-auto: ${DDL_AUTO}
ddl-auto: ${DDL_AUTO:validate}
show-sql: ${SHOW_SQL}
properties:
hibernate:
Expand Down

This file was deleted.

This file was deleted.

7 changes: 7 additions & 0 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ spring:
redis:
host: mock
port: 12345
flyway:
enabled: false
locations: classpath:db/migration
baseline-on-migrate: false
baseline-version: 1
out-of-order: false
validate-on-migrate: true
jpa:
database-platform: org.hibernate.dialect.H2Dialect
hibernate:
Expand Down
Loading