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 e5de535 commit c44c0c5Copy full SHA for c44c0c5
src/utils/exportSQL/generic.js
@@ -205,8 +205,9 @@ export function jsonToPostgreSQL(obj) {
205
(f) =>
206
`CREATE TYPE "${f.name}_t" AS ENUM (${f.values
207
.map((v) => `'${v}'`)
208
- .join(", ")});\n`,
209
- );
+ .join(", ")});`,
+ )
210
+ .join("\n");
211
if (typeStatements.length > 0) {
212
return (
213
typeStatements.join("") +
@@ -237,8 +238,9 @@ export function jsonToPostgreSQL(obj) {
237
238
239
240
- .join(", ")});\n\n`,
241
- )}`
+ .join(", ")});\n`,
242
243
+ .join("\n")}\n`
244
: ""
245
}CREATE TABLE "${table.name}" (\n${table.fields
246
.map(
0 commit comments