mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-19 05:14:51 +00:00
Fix mysql field name not getting exported (#233)
This commit is contained in:
@@ -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" : ""
|
||||
|
Reference in New Issue
Block a user