Skip to content

Commit

Permalink
Merge 4e63241 into c798c63
Browse files Browse the repository at this point in the history
  • Loading branch information
Phenelo committed Apr 26, 2019
2 parents c798c63 + 4e63241 commit eb2cff6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ exports.buildShelf = async (conns, schemas, opts) => {
delete schema.hasCreatedTable;

shelf.models[schema.name] = exports.loadModel(schema, bookshelf);

if (shelf.models[schema.name].options || opts.schemas[schema.name]) {
shelf.models[schema.name].options = Object.assign({}, shelf.models[schema.name].options, opts.schemas[schema.name]);
}

}
}
}
Expand Down

0 comments on commit eb2cff6

Please sign in to comment.