Skip to content

Commit 74c74b7

Browse files
committed
fix: use id_column, id_sequence from schema definition
1 parent e4ff7a2 commit 74c74b7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/common/QueryRunner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ export class QueryRunner<
175175
})),
176176
],
177177
idTable: this.schema.tableName,
178-
idColumn: "project_phase_id",
179-
idSequence: "project_phase_id_seq",
178+
idColumn: this.schema.idColumn ?? undefined,
179+
idSequence: this.schema.idSequence ?? undefined,
180180
},
181181
},
182182
};

src/schema/project/ProjectPhase.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { AuditColumns } from "../common/AuditColumns";
55
export const ProjectPhaseSchema: Schema = {
66
dbSchema: "tcs_catalog",
77
tableName: "project_phase",
8+
idColumn: "project_phase_id",
9+
idSequence: "project_phase_id_seq",
810
columns: {
911
duration: { name: "duration", type: ColumnType.COLUMN_TYPE_INT },
1012
projectId: { name: "project_id", type: ColumnType.COLUMN_TYPE_INT },

0 commit comments

Comments
 (0)