Play-slick - how add two database and changelog?
vnt-83 opened this issue · 0 comments
vnt-83 commented
Hello. I use play-slick 3.0.1 and play-liquibase 1.4.
Now I have one database with changelog. My application.conf:
slick.dbs.default.profile = "models.database.CustomPostgresProfile$"
slick.dbs.default.db.driver = "org.postgresql.Driver"
slick.dbs.default.db.url = "jdbc:postgresql://127.0.0.1:5432/mydb"
slick.dbs.default.db.user = "postgres"
slick.dbs.default.db.password = "postgres"
liquibase = ${slick.dbs.default.db}
liquibase.changelog = "classpath:liquibase/changelog-master.xml"
I add two database:
slick.dbs.db2.profile = "models.database.CustomPostgresProfile$"
slick.dbs.db2.db.driver = "org.postgresql.Driver"
slick.dbs.db2.db.url = "jdbc:postgresql://127.0.0.1:5432/mydb2"
slick.dbs.db2.db.user = "postgres"
slick.dbs.db2.db.password = "postgres"
How i can add changelog-master-db2.xml to added database?