在 play 框架中以测试模式运行时,我注意到了几个问题。
修改application.conf开启test数据库后,如果没有创建test数据库,会自动拾取dev数据库,不知道对不对。
我无法将进化应用于测试数据库。
我如何将进化专门应用于测试数据库,因为我在开始使用开发数据库后很长时间创建了测试数据库。
以下是application.conf的内容
%test.application.mode=dev<br/>
%test.db.url=postgres://postgres:Passw0rd@localhost/dashboard_test<br/>
%test.jpa.ddl=create-drop
最佳答案
这是命令
play evolutions:apply --%test
关于playframework - 我如何将进化应用于 Play 框架中的测试数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8095502/