Skip to content

Commit

Permalink
Legger til flyway postgresql modul
Browse files Browse the repository at this point in the history
  • Loading branch information
ramrock93 committed Sep 2, 2024
1 parent 65af98a commit 0f2fda4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ dependencies {
// Database
runtimeOnly("org.postgresql:postgresql:$postgresqlVersion")
implementation("org.flywaydb:flyway-core")
implementation("org.flywaydb:flyway-database-postgresql")
testImplementation("org.testcontainers:junit-jupiter:$testContainersVersion")
testImplementation("org.testcontainers:postgresql:$testContainersVersion")

Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ application-ingress: http://localhost:9999

spring:
datasource:
url: jdbc:tc:postgresql:12:///
url: jdbc:tc:postgresql:15:///
driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver
flyway:
enabled: true
jpa:
show-sql: true
database-platform: org.hibernate.dialect.PostgreSQL12Dialect
database-platform: org.hibernate.dialect.PostgreSQL15Dialect

logging:
level:
Expand Down

0 comments on commit 0f2fda4

Please sign in to comment.