Skip to content

Commit

Permalink
Remove hardcoded namespace in DAL table class to use default namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-dp committed Apr 16, 2024
1 parent aff9215 commit c6f3823
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clients/typescript/src/client/model/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ export class Table<
this._fields,
this._transformer.converter
)
this._qualifiedTableName = new QualifiedTablename('main', tableName)
const namespace = this.dialect === 'Postgres' ? 'public' : 'main'
this._qualifiedTableName = new QualifiedTablename(namespace, tableName)
this._tables = new Map()
this._schema = tableDescription.modelSchema
this.createSchema = omitCountFromSelectAndIncludeSchema(
Expand Down

0 comments on commit c6f3823

Please sign in to comment.