[Need a fix/suggestion] Altering a timestamp column to timestampz column doesn't reflect in postgres
See original GitHub issueHi @dantownsend
I have a Date
column/field which showed postgres datatype as timestamp
. After altering the field type in the model to use
Timestamptz
, it still shows timestamp
instead of timestamptz
. Can you please check. It also breaks insert statements.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
In Postgres, how to generate a UTC timestamp with timezone ...
My table has a "Timestamp" column (text type) with YYYY-MM-DDTHH:MM:SSZ formatted dates. I want to generate a timestamptz formatted column with ...
Read more >Don't Do This - PostgreSQL wiki
A short list of common mistakes. Kristian Dupont provides schemalint a tool to verify the database schema against those recommendations.
Read more >Error changing timestamp column in PostgreSQL · Issue #22908
Description: Cannot alter a timestamp table from not null to nullable, Doctrine raises this exception: Unknown column type "timestamp" ...
Read more >Time, TIMETZ, Timestamp and TimestampTZ in PostgreSQL
The TIMESTAMP column does not regard the time zone, so drops that information. When we switched time zones to UTC-3 , only the...
Read more >Postgresql update timestamp without timezone to have ...
You can see in the above no tz in output. Now let's change to use a with time zone . ALTER TABLE foo...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dashsatish I’ve been able to replicate this - working on a fix. Seems to be a general issue, where Piccolo can’t convert column types in migrations.
Fixed as of 0.72.0!