Skip to content

Instantly share code, notes, and snippets.

@FRosner
Created June 7, 2019 09:44
Show Gist options
  • Save FRosner/8d46d2284991b4068febbdb6d9e22431 to your computer and use it in GitHub Desktop.
Save FRosner/8d46d2284991b4068febbdb6d9e22431 to your computer and use it in GitHub Desktop.
val (host, port, dbName, username, password) = getConnectionDetails()
val jdbcUrl = "jdbc:postgresql://$host:$port/$dbName"
Flyway.configure()
.dataSource(jdbcUrl, username, password)
.load()
.migrate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment