-
Notifications
You must be signed in to change notification settings - Fork 283
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
syncer: support configure time_zone for downstream db #3378
Comments
we can add it in session variables of config in my memory |
We'll forcibly reset this now https://github.com/pingcap/dm/blob/83f62ae85d9d150f55c442dd99cf2dc82a49337a/dm/config/task.go#L934 |
In order to solve this issue, I think we can change our default |
SGTM |
Is your feature request related to a problem? Please describe
After pingcap/dm#1691 we deprecated
time_zone
variable for convenience.However, sometimes we may need dm to execute dml in specific
time_zone
, for example, adding an extra columnupdate_time datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
in downstream table.In this case,
update_time
will always be aUTC
format time. However, we may want aCST
time.Describe the feature you'd like
Support configure
time_zone
variable intask.yaml
. This variable only takes effect for syncer.Describe alternatives you've considered
Change column
update_time
's type fromdatetime
totimestamp
. But timestamp may not be used after 2038.Teachability, Documentation, Adoption, Migration Strategy
No response
The text was updated successfully, but these errors were encountered: