Remove useless default config in strapi-bookshelf

This commit is contained in:
Pierre Burgy 2017-07-17 10:54:27 +02:00
parent 33cc2499b5
commit f316b51e33

View File

@ -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)) {