Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix default id type for slave db

  • Loading branch information...
commit 1b99da9cc2bd82ba64051772b92f0871b3f15688 1 parent 56383be
@1602 authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.