From 8f185bc6956a949ed4fd235d8f05e4671c89a5f8 Mon Sep 17 00:00:00 2001 From: 1ilit <1ilit@proton.me> Date: Wed, 28 Aug 2024 15:12:23 +0400 Subject: [PATCH] Fix mysql field name not getting exported (#233) --- src/utils/exportSQL/mariadb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/exportSQL/mariadb.js b/src/utils/exportSQL/mariadb.js index e7f5c55..e7f3588 100644 --- a/src/utils/exportSQL/mariadb.js +++ b/src/utils/exportSQL/mariadb.js @@ -1,4 +1,4 @@ -import { exportFieldComment, parseDefault } from "./shared"; +import { parseDefault } from "./shared"; import { dbToTypes } from "../../data/datatypes"; @@ -9,7 +9,7 @@ export function toMariaDB(diagram) { `CREATE OR REPLACE TABLE \`${table.name}\` (\n${table.fields .map( (field) => - `${exportFieldComment(field.comment)}\t\`${ + `\t\`${ field.name }\` ${field.type}${field.unsigned ? " UNSIGNED" : ""}${field.notNull ? " NOT NULL" : ""}${ field.increment ? " AUTO_INCREMENT" : ""