fix for checks in the export script

This commit is contained in:
johnnyfish
2024-08-23 03:06:50 +03:00
parent e380200a75
commit c4948b0853

View File

@@ -37,9 +37,9 @@ export const exportBaseSQL = (diagram: Diagram): string => {
}
// Add precision and scale for numeric types
if (field.precision !== null && field.scale !== null) {
if (field.precision && field.scale) {
sqlScript += `(${field.precision}, ${field.scale})`;
} else if (field.precision !== null) {
} else if (field.precision) {
sqlScript += `(${field.precision})`;
}