question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Need a fix/suggestion] Altering a timestamp column to timestampz column doesn't reflect in postgres

See original GitHub issue

Hi @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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dantownsendcommented, Feb 9, 2021

@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.

0reactions
dashsatishcommented, Apr 5, 2022

Fixed as of 0.72.0!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found