mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-11 02:00:37 +08:00
Accept null values for nullable fields
This commit is contained in:
@@ -11,6 +11,8 @@ function checkDefault(field) {
|
|||||||
|
|
||||||
if (isFunction(field.default)) return true;
|
if (isFunction(field.default)) return true;
|
||||||
|
|
||||||
|
if (!field.notNull && field.default.toLowerCase() === "null") return true;
|
||||||
|
|
||||||
switch (field.type) {
|
switch (field.type) {
|
||||||
case "INT":
|
case "INT":
|
||||||
case "BIGINT":
|
case "BIGINT":
|
||||||
|
|||||||
Reference in New Issue
Block a user