Skip to content

Commit 8f185bc

Browse files
committed
Fix mysql field name not getting exported (#233)
1 parent 6e18b6a commit 8f185bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/exportSQL/mariadb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { exportFieldComment, parseDefault } from "./shared";
1+
import { parseDefault } from "./shared";
22

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

@@ -9,7 +9,7 @@ export function toMariaDB(diagram) {
99
`CREATE OR REPLACE TABLE \`${table.name}\` (\n${table.fields
1010
.map(
1111
(field) =>
12-
`${exportFieldComment(field.comment)}\t\`${
12+
`\t\`${
1313
field.name
1414
}\` ${field.type}${field.unsigned ? " UNSIGNED" : ""}${field.notNull ? " NOT NULL" : ""}${
1515
field.increment ? " AUTO_INCREMENT" : ""

0 commit comments

Comments
 (0)