Bug #78684 | Table structure editor doesn't allow TIMESTAMP type | ||
---|---|---|---|
Submitted: | 2 Oct 2015 16:45 | Modified: | 9 Oct 2015 0:50 |
Reporter: | Jeff Kopmanis | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Workbench | Severity: | S1 (Critical) |
Version: | 6.3.4 | OS: | MacOS (OS X 10.10.x Yosemite) |
Assigned to: | CPU Architecture: | Any | |
Tags: | WBBugReporter |
[2 Oct 2015 16:45]
Jeff Kopmanis
[2 Oct 2015 16:46]
Jeff Kopmanis
it was the recommended file
Attachment: wb.log (application/octet-stream, text), 4.56 KiB.
[6 Oct 2015 13:48]
MySQL Verification Team
Thank you for the bug report. Are you able to provide a model file which fails to forward?. Thanks.
[6 Oct 2015 13:52]
Jeff Kopmanis
I've added a model to the bug report. the table app_status is where I had to manually override things in the SQL editor in the wizard to get a timestamp with an auto-update defined.
[9 Oct 2015 0:50]
MySQL Verification Team
Thank you for the feedback. Please read: https://dev.mysql.com/doc/refman/5.6/en/timestamp-initialization.html Then if you remove the () from TIMESTAMP() you can use the DEFAULT: CREATE TABLE t1 ( ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, or when you type 6 so TIMESTAMP(6) you can use the DEFAULT: CREATE TABLE t1 ( ts TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6) ); Hope this help you.