mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-11 02:00:37 +08:00
Make boolean defaults case insensitive
This commit is contained in:
@@ -30,7 +30,8 @@ function checkDefault(field) {
|
|||||||
);
|
);
|
||||||
case "BOOLEAN":
|
case "BOOLEAN":
|
||||||
return (
|
return (
|
||||||
field.default.trim() === "false" || field.default.trim() === "true"
|
field.default.trim().toLowerCase() === "false" ||
|
||||||
|
field.default.trim().toLowerCase() === "true"
|
||||||
);
|
);
|
||||||
case "FLOAT":
|
case "FLOAT":
|
||||||
case "DECIMAL":
|
case "DECIMAL":
|
||||||
|
|||||||
Reference in New Issue
Block a user