Harish.K 9 years ago
parent
commit
d9a1ccd58e
  1. 2
      index.js

2
index.js

@ -63,6 +63,7 @@ function Field( attr ){
this.autoIncrement = new Val( attr.autoIncrement ); this.autoIncrement = new Val( attr.autoIncrement );
this.allowNull = new Val( attr.allowNull ); this.allowNull = new Val( attr.allowNull );
this.defaultValue = new Val( attr.defaultValue );
this.primaryKey = new Val( attr.primaryKey ); this.primaryKey = new Val( attr.primaryKey );
this.onDelete = new QuotedVal( attr.onDelete ); this.onDelete = new QuotedVal( attr.onDelete );
this.onUpdate = new QuotedVal( attr.onUpdate ); this.onUpdate = new QuotedVal( attr.onUpdate );
@ -82,6 +83,7 @@ Field.create = function( attr ){
Field.opts = [ Field.opts = [
'autoIncrement', 'autoIncrement',
'allowNull', 'allowNull',
'defaultValue',
'primaryKey', 'primaryKey',
'onDelete', 'onDelete',
'onUpdate' 'onUpdate'

Loading…
Cancel
Save