Database diagrams editor that allows you to visualize and design your DB with a single query.
TypeScript databasedbdb-migrationeditorerdmariadbmssqlmysqlpostgresqlreactreact-flowschema-migrationssqlsqlitetypescriptvisualizationxyflow
remove logs
Guy Ben-Aharon6cf8ce9af35d
diff --git a/src/lib/data/export-metadata/export-sql-script.ts b/src/lib/data/export-metadata/export-sql-script.tsindex 336b9690..787d112d 100644--- a/src/lib/data/export-metadata/export-sql-script.ts+++ b/src/lib/data/export-metadata/export-sql-script.ts@@ -184,25 +184,11 @@ function alignForeignKeyDataTypes(diagram: Diagram) {const targetSize = getMySQLDataTypeSize(targetField.type);if (sourceSize > targetSize) {- // Print a message indicating that the data type is being adjusted- console.log(- `Adjusting data type of '${targetTable.name}.${targetField.name}' from '${targetField.type}' to '${sourceField.type}' to match '${sourceTable.name}.${sourceField.name}'`- );-// Adjust the child field data type to the larger data typetargetField.type = sourceField.type;} else if (targetSize > sourceSize) {- // Print a message indicating that the data type is being adjusted- console.log(- `Adjusting data type of '${targetTable.name}.${sourceField.name}' from '${sourceField.type}' to '${targetField.type}' to match '${targetTable.name}.${targetField.name}' ('${targetField.type}')`- );-// Adjust the child field data type to the larger data typesourceField.type = targetField.type;- } else {- console.log(- `same data type '${targetField.type}' = '${sourceField.type}'.`- );}}}