mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-08-29 02:25:26 +00:00
Fix undefined precision
This commit is contained in:
@@ -94,7 +94,7 @@ export function getTypeString(
|
||||
return `${type}(${field.size})`;
|
||||
}
|
||||
if (dbToTypes[currentDb][field.type].hasPrecision && field.size !== "") {
|
||||
return `${field.type}${field.size}`;
|
||||
return `${field.type.toLowerCase()}${field.size ? `(${field.size})` : ""}`;
|
||||
}
|
||||
return field.type.toLowerCase();
|
||||
} else if (dbms === "mssql") {
|
||||
|
Reference in New Issue
Block a user