-
Notifications
You must be signed in to change notification settings - Fork 869
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Set Explicit Default for all Timestamp Values in MySQL Schema #119
Comments
Moving to stabilization. This is backwards compatible change. |
@yiminc @wxing1292 can you confirm if this is still relevant? |
we will re-evaluate this issue when supporting mysql 8.0 |
now server support mysql 8.0.19. #2210 |
This don't work when the time zone is '+8:00', because it would be subtracted 8 hours when convert it to
The timezone offset is only supported from mysql |
Lets set it to '1970-01-02 00:00:01' so that it's safe against timezone adjustment but doesn't require any particular MySQL release. |
This is preventing install on the current MariaDB version on AWS RDS (10.6.8). |
This avoids compatibility issues with differing versions of MySQL. Using 24 hours after the minimum timestamp value allows for any timezone adjustment that MySQL would do to get a UTC value before storing. The timezone suffix is not supported by all current MySQL versions/derivatives. Fixes #119
This avoids compatibility issues with differing versions of MySQL. Using 24 hours after the minimum timestamp value allows for any timezone adjustment that MySQL would do to get a UTC value before storing. The timezone suffix is not supported by all current MySQL versions/derivatives. Fixes #119
During the clusterMembership table schema creation, I found MySQL has some hidden default value behavior for Timestamp columns that are declared NOT NULL in some cases. This caused the schema to work correctly on my local mysql (version: 8.0.19 Homebrew) but failed on the server mysql (version: 5.7).
From https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_explicit_defaults_for_timestamp:
The text was updated successfully, but these errors were encountered: