mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-01-12 07:01:40 +08:00
Fix: Correctly handle 'null' default value for nullable fields (#780)
This commit is contained in:
@@ -7,7 +7,7 @@ function checkDefault(field, database) {
|
||||
if (isFunction(field.default)) return true;
|
||||
if (
|
||||
!field.notNull &&
|
||||
typeof field === "string" &&
|
||||
typeof field.default === "string" &&
|
||||
field.default.toLowerCase() === "null"
|
||||
)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user