flyway-play icon indicating copy to clipboard operation
flyway-play copied to clipboard

Please support customizing conf schema, so it works with slick

Open nafg opened this issue 9 years ago • 8 comments

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 = ""
    }
  }
}

nafg avatar Sep 03 '15 07:09 nafg

+1

shimamoto avatar Sep 07 '15 10:09 shimamoto

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

crisadamo avatar Sep 14 '15 21:09 crisadamo

When is this merge ready? I'm really waiting for this, to change my evolutions to flyway.

schmitch avatar Oct 05 '15 07:10 schmitch

@schmitch In the meantime I've documented a workaround here.

ssanj avatar Dec 20 '15 11:12 ssanj

+1

ghost avatar Dec 29 '16 10:12 ghost

+1

yeryomenkom avatar May 25 '17 14:05 yeryomenkom

+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.

etspaceman avatar Sep 03 '17 04:09 etspaceman

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}

Daxten avatar Oct 25 '17 09:10 Daxten