Skip to content

Commit

Permalink
fix: incorrect query generation
Browse files Browse the repository at this point in the history
fixes #206
  • Loading branch information
macjuul committed Apr 24, 2024
1 parent 7d6bc86 commit 0ea8a54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/designer/DesignDrawer/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ export function buildDefinitionQueries(previous: TableInfo, current: TableInfo)
query += " SCHEMALESS";
}

query + ` TYPE ${tableType}`;
query += ` TYPE ${tableType}`;

if (tableType === "RELATION" && current.schema.kind.in) {
query += ` IN ${current.schema.kind.in.join(", ")}`;
query += ` IN ${current.schema.kind.in.map(name => tb(name)).join(", ")}`;
}

if (tableType === "RELATION" && current.schema.kind.out) {
query += ` OUT ${current.schema.kind.out.join(", ")}`;
query += ` OUT ${current.schema.kind.out.map(name => tb(name)).join(", ")}`;
}

if (current.schema.view) {
Expand Down

0 comments on commit 0ea8a54

Please sign in to comment.