在游戏2中重新生成进化脚本 [英] Regenerate evolution scripts in play 2
本文介绍了在游戏2中重新生成进化脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我仍在开发游戏2的应用程序的第一个版本.如何重新生成演化脚本?
I am still developing first version of my application on play 2. How could I regenerate evolution scripts?
推荐答案
免责声明:它将破坏您现有的数据库并创建一个新数据库!
在以下情况下,自动进化将自动重新生成:
The auto-evolution will auto-regenerate when:
- 您正在以
dev
模式运行应用程序 - 在
application.conf
中,您对此行未进行了评论:ebean.default="models.*"
- evolutions文件夹中只有一个文件,它是
1.sql
- 开头有此评论:
- you are running your app in the
dev
mode - in
application.conf
you have this line not commented :ebean.default="models.*"
- there is only one file in your evolutions folder and it's
1.sql
- it has this comment at the beginning:
# --- Created by Ebean DDL
这篇关于在游戏2中重新生成进化脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文