You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support PostgreSQL type Timestamptz (TIMESTAMP WITH TIME ZONE) #2417
Currently Prisma does not handle the PostgreSQL type timestamptz, which leads to it not being introspected appropriately (#552) or queries against fields using it failing (prisma/prisma-client-js#90)
Suggested solution
Prisma should support these types.
Alternatives
None really.
Reacted by Émile Fugulin, Tanguy Krotoff, Rod, Iain Collins, Ken Potter, krinoid, Dan M. and Kishan B
I just saw this issue pop up in my notifications, and I'm a bit suprised. Are we sure this doesn't work? We have tests that check can introspect (to DateTime), read, write and filter on timestamptz columns in the prisma-engines repo, I just double checked.
No, this replaced an older feature request that was open and formulated poorly. If you are confident enough we are doing all the right things here, please just close the issue 🚀 Thanks.
We do test this type in the query engine test suite, so I think we can consider it supported. This topic will come up again as we work on native types support in the near future.
Activity
tomhoule commentedon May 12, 2020
I just saw this issue pop up in my notifications, and I'm a bit suprised. Are we sure this doesn't work? We have tests that check can introspect (to DateTime), read, write and filter on timestamptz columns in the prisma-engines repo, I just double checked.
janpio commentedon May 14, 2020
No, this replaced an older feature request that was open and formulated poorly. If you are confident enough we are doing all the right things here, please just close the issue 🚀 Thanks.
tomhoule commentedon May 14, 2020
I'm quite sure, but I'll check again that it's already supported :)
lights0123 commentedon May 17, 2020
But as far as I'm aware, migrate doesn't, and will create
timestampcolumns instead. Should that issue belong in https://github.com/prisma/migrate? Although it would probably require modification of the schema.pantharshit00 commentedon May 18, 2020
@lights0123 Support for
timestampzor any other type for migrate will come in future via #446Right now if you start a greenfield (basically from scratch) with migrate, it is a bit opinionated about database type mapping
tomhoule commentedon Jul 28, 2020
We do test this type in the query engine test suite, so I think we can consider it supported. This topic will come up again as we work on native types support in the near future.
chrissisura commentedon Nov 13, 2020
Hey guys, I getting this error for all my timestamptz with prisma 2.11 after introspecting my postgres database.
*** WARNING ***
These fields were commented out because Prisma currently does not support their types.
giraffesyo commentedon Nov 14, 2020
Same problem here, this completely broke my project. Reverting back to 2.10.2 and regenerating fixed it.
devuxer commentedon Jul 13, 2021
Edit: Ignore this. I was using the wrong database.
Still broken in @prisma/client 2.26.0.I get:
pantharshit00 commentedon Jul 13, 2021
We do have support for this now: https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#postgresql-6
Please open a new issue if you encountering any bugs with a minimal reproduction.
devuxer commentedon Jul 13, 2021
@pantharshit00 , My mistake, I just realized the project I was experimenting with was SQLite not Postgres.