mirror of
https://github.com/strapi/strapi.git
synced 2025-08-21 15:19:22 +00:00
Remove useless default config in strapi-bookshelf
This commit is contained in:
parent
33cc2499b5
commit
f316b51e33
@ -117,11 +117,6 @@ module.exports = function(strapi) {
|
|||||||
_.forEach(models, (definition, model) => {
|
_.forEach(models, (definition, model) => {
|
||||||
globalName = _.upperFirst(_.camelCase(definition.globalId));
|
globalName = _.upperFirst(_.camelCase(definition.globalId));
|
||||||
|
|
||||||
// Set the default values to model settings.
|
|
||||||
_.defaults(definition, {
|
|
||||||
primaryKey: 'id'
|
|
||||||
});
|
|
||||||
|
|
||||||
// Make sure the model has a table name.
|
// Make sure the model has a table name.
|
||||||
// If not, use the model name.
|
// If not, use the model name.
|
||||||
if (_.isEmpty(definition.tableName)) {
|
if (_.isEmpty(definition.tableName)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user