Skip to content

Commit 6e18b6a

Browse files
committed
Fix mysql field name not getting exported
1 parent 3cd0633 commit 6e18b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/exportSQL/mysql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function toMySQL(diagram) {
99
`CREATE TABLE \`${table.name}\` (\n${table.fields
1010
.map(
1111
(field) =>
12-
`\` ${field.type}${field.unsigned ? " UNSIGNED" : ""}${field.size !== undefined && field.size !== "" ? "(" + field.size + ")" : ""}${
12+
`\t\`${field.name}\` ${field.type}${field.unsigned ? " UNSIGNED" : ""}${field.size !== undefined && field.size !== "" ? "(" + field.size + ")" : ""}${
1313
field.notNull ? " NOT NULL" : ""
1414
}${
1515
field.increment ? " AUTO_INCREMENT" : ""

0 commit comments

Comments
 (0)