Skip to content

Commit

Permalink
Fix mysql field name not getting exported
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilit committed Aug 28, 2024
1 parent 3cd0633 commit 6e18b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/exportSQL/mysql.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function toMySQL(diagram) {
`CREATE TABLE \`${table.name}\` (\n${table.fields
.map(
(field) =>
`\` ${field.type}${field.unsigned ? " UNSIGNED" : ""}${field.size !== undefined && field.size !== "" ? "(" + field.size + ")" : ""}${
`\t\`${field.name}\` ${field.type}${field.unsigned ? " UNSIGNED" : ""}${field.size !== undefined && field.size !== "" ? "(" + field.size + ")" : ""}${
field.notNull ? " NOT NULL" : ""
}${
field.increment ? " AUTO_INCREMENT" : ""
Expand Down

0 comments on commit 6e18b6a

Please sign in to comment.