Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using timestamp with time zone by default #264

Open
zachdaniel opened this issue May 3, 2024 · 0 comments
Open

Switch to using timestamp with time zone by default #264

zachdaniel opened this issue May 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zachdaniel
Copy link
Contributor

https://wiki.postgresql.org/wiki/Don't_Do_This#Don.27t_use_timestamp_.28without_time_zone.29

While all of the Ash built-in primitives work fine on top of timestamp without timezone, we want to push users towards best practices. To this end, we will (at some point) add an opt-in toggle that switches AshPostgres to use timestamp with time zone for all of its datetime storage. This should (barring any investigation done when it's time to do the work) essentially just transparently make things better for users. The migration generator would pick up any changes and migrate them to UTC timestamps with time zone, and then basically this just have less trouble when working directly with the database in the future (in fragments or in SQL queries)

@zachdaniel zachdaniel added bug Something isn't working needs review and removed needs review labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Someday
Development

No branches or pull requests

1 participant