Skip to content

Commit

Permalink
chore: use createTable:
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicGBauer committed Aug 28, 2024
1 parent e0e8dcb commit 2a6a5b2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/common/src/db/schema/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,7 @@ export class Schema<S extends SchemaType = SchemaType> {

private convertToClassicTables(props: S) {
return Object.entries(props).map(([name, table]) => {
const convertedTable = new Table({
name,
columns: table.columns,
indexes: table.indexes,
localOnly: table.localOnly,
insertOnly: table.insertOnly,
viewName: table.viewName
});
const convertedTable = Table.createTable(name, table);
return convertedTable;
});
}
Expand Down

0 comments on commit 2a6a5b2

Please sign in to comment.