Add database helpers 'add_timestamps_with_timezone' and 'timestamps_with_timezone'
What does this MR do?
This MR adds:
- A database helper
add_timestamps_with_timezone
based on Rails' add_timestamps method. - A database helper
timestamps_with_timezone
based on Rails' timestamps method. - A custom
datetime_with_timezone
data type:
- for PostgreSQL it converts to
timestamptz
. - for MySQL it converts to
timestamp
.
Why was this MR needed?
We want to store data with timezone information.
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Closes #32054 (closed)
Edited by blackst0ne