Skip to content

Commit ec5dcf4

Browse files
committed
Disable evolutions in PROD mode
1 parent ebae026 commit ec5dcf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/src/play/db/Evolutions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public boolean rawInvocation(Request request, Response response) throws Exceptio
181181

182182
@Override
183183
public void beforeInvocation() {
184-
if(isDisabled()) {
184+
if(isDisabled() || Play.mode.isProd()) {
185185
return;
186186
}
187187
try {
@@ -198,7 +198,7 @@ public void beforeInvocation() {
198198

199199
@Override
200200
public void onApplicationStart() {
201-
if (! isDisabled() && Play.mode.isProd()) {
201+
if (!isDisabled() && Play.mode.isProd()) {
202202
try {
203203
checkEvolutionsState();
204204
} catch (InvalidDatabaseRevision e) {

0 commit comments

Comments
 (0)