From f316b51e334d64b8620ad6786cac7541ffcc31b3 Mon Sep 17 00:00:00 2001 From: Pierre Burgy Date: Mon, 17 Jul 2017 10:54:27 +0200 Subject: [PATCH] Remove useless default config in strapi-bookshelf --- packages/strapi-bookshelf/lib/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/strapi-bookshelf/lib/index.js b/packages/strapi-bookshelf/lib/index.js index d0a4a5a66f..90ca939b70 100755 --- a/packages/strapi-bookshelf/lib/index.js +++ b/packages/strapi-bookshelf/lib/index.js @@ -117,11 +117,6 @@ module.exports = function(strapi) { _.forEach(models, (definition, model) => { globalName = _.upperFirst(_.camelCase(definition.globalId)); - // Set the default values to model settings. - _.defaults(definition, { - primaryKey: 'id' - }); - // Make sure the model has a table name. // If not, use the model name. if (_.isEmpty(definition.tableName)) {