From d9a1ccd58ef448de75966abef344fffa2ce8cf2f Mon Sep 17 00:00:00 2001 From: "Harish.K" Date: Fri, 24 Jun 2016 15:06:45 +0530 Subject: [PATCH] Fix --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 1a9dbfa..f2966e6 100644 --- a/index.js +++ b/index.js @@ -63,6 +63,7 @@ function Field( attr ){ this.autoIncrement = new Val( attr.autoIncrement ); this.allowNull = new Val( attr.allowNull ); + this.defaultValue = new Val( attr.defaultValue ); this.primaryKey = new Val( attr.primaryKey ); this.onDelete = new QuotedVal( attr.onDelete ); this.onUpdate = new QuotedVal( attr.onUpdate ); @@ -82,6 +83,7 @@ Field.create = function( attr ){ Field.opts = [ 'autoIncrement', 'allowNull', + 'defaultValue', 'primaryKey', 'onDelete', 'onUpdate'