Merge branch 'master' of github.com:1602/jugglingdb
This commit is contained in:
commit
fb8d0acc80
|
@ -93,9 +93,13 @@ function loadSchema(schema, railway, app, models) {
|
||||||
fn(context, require);
|
fn(context, require);
|
||||||
}
|
}
|
||||||
|
|
||||||
// and freeze schemas
|
// autoupdate if set app.enable('autoupdate') or freeze schemas by default
|
||||||
railway.orm._schemas.forEach(function (schema) {
|
railway.orm._schemas.forEach(function (schema) {
|
||||||
|
if(app.enabled('autoupdate')){
|
||||||
|
schema.autoupdate();
|
||||||
|
} else {
|
||||||
schema.freeze();
|
schema.freeze();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue