Permalink
Browse files

feat: add a new optional column for field -> autoIncrement

  • Loading branch information...
XadillaX committed Feb 28, 2016
1 parent 14f7926 commit e891d6e501840998c37d87210bfc3bd011e3cff9
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/field.js
@@ -42,6 +42,9 @@ var Field = function(opt) {
}

this.primaryKey = !!opt.primaryKey;
if(opt.autoIncrement !== undefined) {
this.autoIncrement = !!opt.autoIncrement;
}

this.defaultValue = (opt.defaultValue === undefined) ? this.type.defaultValue : opt.defaultValue;
};

0 comments on commit e891d6e

Please sign in to comment.