当前位置: 动力学知识库 > 问答 > 编程问答 >

java - In Play Framework, how and when are changes to models synchronized with the DB schema?

问题描述:

In the Play Framework, when i add or modify a model, when is the update made to the database schema? is this done automatically, or do i need to initiate it manually somehow?

网友答案:

If your are running in Dev mode, then it is done immediately. The definition of immediately is when a server request is next invoked, the update check is made and this kicks off the process for recompiling your Java classes, and as a result the database schema also.

If it is in Prod mode, then it is when the server starts.

分享给朋友:
您可能感兴趣的文章:
随机阅读: