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);
|
||||
}
|
||||
|
||||
// and freeze schemas
|
||||
// autoupdate if set app.enable('autoupdate') or freeze schemas by default
|
||||
railway.orm._schemas.forEach(function (schema) {
|
||||
schema.freeze();
|
||||
if(app.enabled('autoupdate')){
|
||||
schema.autoupdate();
|
||||
} else {
|
||||
schema.freeze();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue