Browse files

Fix default id type for slave db

  • Loading branch information...
1 parent 56383be commit 1b99da9cc2bd82ba64051772b92f0871b3f15688 @1602 committed Jan 13, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/schema.js
View
2 lib/schema.js
@@ -257,7 +257,7 @@ Schema.prototype.define = function defineClass(className, properties, settings)
return this.__data.id;
});
- properties.id = properties.id || { type: Number };
+ properties.id = properties.id || { type: schema.settings.slave ? String : Number };
NewClass.forEachProperty = function (cb) {
Object.keys(properties).forEach(cb);

0 comments on commit 1b99da9

Please sign in to comment.