From c63b362ce88305c211c7ad73320e284f2ab40e5d Mon Sep 17 00:00:00 2001 From: ClaPalo Date: Thu, 11 Apr 2024 13:05:24 -0500 Subject: [PATCH] Fixed bug default boolean value when importing from source --- src/utils/astToDiagram.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/astToDiagram.js b/src/utils/astToDiagram.js index e10ac1ae..27422191 100644 --- a/src/utils/astToDiagram.js +++ b/src/utils/astToDiagram.js @@ -31,7 +31,7 @@ export function astToDiagram(ast) { field.primary = false; if (d.primary_key) field.primary = true; field.default = ""; - if (d.default_val) field.default = d.default_val.value.value; + if (d.default_val) field.default = d.default_val.value.value.toString(); if (d.definition["length"]) field.size = d.definition["length"]; field.check = ""; if (d.check) {