Skip to content

Commit

Permalink
Fix mysql field name not getting exported (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilit committed Aug 28, 2024
1 parent 6e18b6a commit 8f185bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/exportSQL/mariadb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { exportFieldComment, parseDefault } from "./shared";
import { parseDefault } from "./shared";

import { dbToTypes } from "../../data/datatypes";

Expand All @@ -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" : ""
Expand Down

0 comments on commit 8f185bc

Please sign in to comment.