Skip to content

Commit b2b0ecf

Browse files
authored
Fix: Correctly handle 'null' default value for nullable fields (#780)
1 parent fe9debd commit b2b0ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/issues.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function checkDefault(field, database) {
77
if (isFunction(field.default)) return true;
88
if (
99
!field.notNull &&
10-
typeof field === "string" &&
10+
typeof field.default === "string" &&
1111
field.default.toLowerCase() === "null"
1212
)
1313
return true;

0 commit comments

Comments
 (0)