Skip to content

Commit

Permalink
Fjern ubrukt flyway config
Browse files Browse the repository at this point in the history
Co-authored-by: Giao The Cung <giaothe@gmail.com>
  • Loading branch information
MariusEriksen and gtcno committed May 23, 2024
1 parent e269457 commit a0e8f77
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package no.nav.dagpenger.oppslag.journalpost.id.db

import com.zaxxer.hikari.HikariDataSource
import org.flywaydb.core.internal.configuration.ConfigUtils
import org.testcontainers.containers.PostgreSQLContainer

internal object Postgres {
Expand All @@ -25,15 +24,13 @@ internal object Postgres {
}

private fun setup() {
System.setProperty(ConfigUtils.CLEAN_DISABLED, "false")
System.setProperty(
PostgresDataSourceBuilder.DB_JDBC_URL_KEY,
instance.jdbcUrl + "&user=${instance.username}&password=${instance.password}",
)
}

private fun tearDown() {
System.clearProperty(ConfigUtils.CLEAN_DISABLED)
System.clearProperty(PostgresDataSourceBuilder.DB_JDBC_URL_KEY)
}

Expand Down

0 comments on commit a0e8f77

Please sign in to comment.