Skip to content

Commit

Permalink
Allow PG Timestamp to accept string as selectType.
Browse files Browse the repository at this point in the history
  • Loading branch information
hevar committed Sep 13, 2024
1 parent f8fd3ce commit b06bb8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/generator/dialects/postgres/postgres-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ export class PostgresAdapter extends Adapter {
new PropertyNode('y', new IdentifierNode('number')),
]),
Timestamp: new ColumnTypeNode(
new IdentifierNode('Date'),
new UnionExpressionNode([
new IdentifierNode('Date'),
new IdentifierNode('string'),
]),
new UnionExpressionNode([
new IdentifierNode('Date'),
new IdentifierNode('string'),
Expand Down

0 comments on commit b06bb8f

Please sign in to comment.