I have an evolution scripts stored at conf/evolutions/templatedb and during runtime, I want to create an instance of play.api.db.Database given a dynamic values that I will get from the user (right now I don’t know how to). And apply the evolution scripts to that Database.
Something like this one.
val url = "jdbc:postgresql://localhost:5432/somedatabase"
val db = Database(url....)
Evolutions.applyEvolutions(db, "templatedb")