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.
2 parents 0d39919 + d05ba8d commit 792c760Copy full SHA for 792c760
src/utils/toSQL.js
@@ -181,7 +181,7 @@ export function jsonToMySQL(obj) {
181
)}", \`${field.name}\`))`
182
: ""
183
: ` CHECK(${field.check})`
184
- }`,
+ }${field.comment ? ` COMMENT '${field.comment}'` : ''}`,
185
)
186
.join(",\n")}${
187
table.fields.filter((f) => f.primary).length > 0
@@ -190,7 +190,7 @@ export function jsonToMySQL(obj) {
190
.map((f) => `\`${f.name}\``)
191
.join(", ")})`
192
193
- }\n);\n${
+ }\n)${table.comment ? ` COMMENT='${table.comment}'` : ''};\n${
194
table.indices.length > 0
195
? `\n${table.indices.map(
196
(i) =>
0 commit comments