We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b37e720 commit 9cfdecaCopy full SHA for 9cfdeca
src/utils/exportSQL/mariadb.js
@@ -11,7 +11,7 @@ export function toMariaDB(diagram) {
11
(field) =>
12
`\t\`${
13
field.name
14
- }\` ${field.type}${field.unsigned ? " UNSIGNED" : ""}${field.notNull ? " NOT NULL" : ""}${
+ }\` ${field.type}${field.values ? "(" + field.values.map(value => "'" + value + "'").join(", ") + ")" : ""}${field.unsigned ? " UNSIGNED" : ""}${field.notNull ? " NOT NULL" : ""}${
15
field.increment ? " AUTO_INCREMENT" : ""
16
}${field.unique ? " UNIQUE" : ""}${
17
field.default !== ""
0 commit comments