flyway-play
flyway-play copied to clipboard
Please support customizing conf schema, so it works with slick
For example here is the config I use with play-slick:
slick.dbs = {
default = {
driver = "slick.driver.H2Driver$"
db = {
url = "jdbc:h2:./database;AUTO_SERVER=TRUE"
driver = org.h2.Driver
user = "sa"
password = ""
}
}
}
+1
Hey guys, I made a PR with a few changes to allow that. Please take a look at https://github.com/flyway/flyway-play/pull/18
When is this merge ready? I'm really waiting for this, to change my evolutions to flyway.
@schmitch In the meantime I've documented a workaround here.
+1
+1
+1
A quick workaround for this is to simply re-define the configuration under the standard db.<database_name> config. It's a bit messy but it works. It would be great to be able to set the config via Slick though.
db.default.driver = ${slick.dbs.default.db.driver}
db.default.url = ${slick.dbs.default.db.url}
db.default.username = ${slick.dbs.default.db.user}
db.default.password = ${slick.dbs.default.db.password}