Skip to content

Commit 7e6b341

Browse files
committed
fix(spec): defaultValue should be checked for undefined only
1 parent 1bf1e12 commit 7e6b341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ var Sqlite3Driver = Base.extend({
8686
constraint.push('UNIQUE');
8787
}
8888

89-
if (spec.defaultValue) {
89+
if (spec.defaultValue !== undefined) {
9090
constraint.push('DEFAULT');
9191

9292
if(typeof(spec.defaultValue) === 'string')

0 commit comments

Comments
 (0)