Playframework 如何在Play框架中应用演化来测试数据库
在play框架中以测试模式运行时,我注意到了几个问题Playframework 如何在Play框架中应用演化来测试数据库,playframework,Playframework,在play框架中以测试模式运行时,我注意到了几个问题 在修改application.conf以启用测试数据库之后,如果没有创建测试数据库,它会自动拾取dev数据库,我不知道这是否正确 我无法将进化应用于测试数据库。 我如何将演化专门应用于测试数据库,因为我在使用dev数据库很久之后创建了测试数据库 下面是application.conf的内容 %test.application.mode=dev<br/> %test.db.url=postgres://postgres:Passw0
在修改application.conf以启用测试数据库之后,如果没有创建测试数据库,它会自动拾取dev数据库,我不知道这是否正确
我无法将进化应用于测试数据库。 我如何将演化专门应用于测试数据库,因为我在使用dev数据库很久之后创建了测试数据库 下面是application.conf的内容
%test.application.mode=dev<br/>
%test.db.url=postgres://postgres:Passw0rd@localhost/dashboard_test<br/>
%test.jpa.ddl=create-drop
%test.application.mode=dev
%test.db.url=postgres://postgres:Passw0rd@本地主机/仪表板测试
%test.jpa.ddl=createdrop
这是命令
play evolutions:apply --%test