Skip to content

Commit

Permalink
fixing pk foreign key
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Oct 20, 2024
1 parent 2e4d5ea commit 352a4c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/connections/postgre/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export abstract class PostgreBaseConnection extends SqlConnection {
const { data: constraintList } = await this.query<{
constraint_schema: string;
constraint_name: string;
table_catalog: string;
table_name: string;
table_schema: string;
constraint_type: string;
}>({
Expand Down Expand Up @@ -105,7 +105,7 @@ WHERE
constraintsList: constraintList.map((constraint) => ({
CONSTRAINT_NAME: constraint.constraint_name,
CONSTRAINT_TYPE: constraint.constraint_type,
TABLE_NAME: constraint.table_catalog,
TABLE_NAME: constraint.table_name,
TABLE_SCHEMA: constraint.table_schema,
})),
constraintColumnsList: constraintColumnsList.map((constraint) => ({
Expand Down
2 changes: 0 additions & 2 deletions src/query-builder/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,6 @@ export abstract class AbstractDialect implements Dialect {
`(${[...columns, ...referenceParts].join(', ')})`,
].join(' ');

console.log(query, 'query');

return { query, parameters: [] };
}

Expand Down

0 comments on commit 352a4c3

Please sign in to comment.