Skip to content

Commit

Permalink
fix: Map date column to correct postgres type
Browse files Browse the repository at this point in the history
  • Loading branch information
danilofuchs committed Nov 4, 2024
1 parent 81f607f commit 4596a9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions singer-connectors/target-postgres/target_postgres/db_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def column_type(schema_property):
# TIMESTAMP WITH TIME ZONE is the better column type
elif property_format == 'date-time':
col_type = 'timestamp without time zone'
elif property_format == 'date':
col_type = 'date'
elif property_format == 'time':
col_type = 'time without time zone'
elif 'number' in property_type:
Expand Down

0 comments on commit 4596a9d

Please sign in to comment.