Bug #54987 | import to model TIMESTAMP ON UPDATE CURRENT_TIMESTAMP does not work | ||
---|---|---|---|
Submitted: | 4 Jul 2010 16:48 | Modified: | 2 Sep 2010 16:33 |
Reporter: | not available | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench: Modeling | Severity: | S2 (Serious) |
Version: | 5.2.25 | OS: | Linux |
Assigned to: | Alfredo Kojima | CPU Architecture: | Any |
Tags: | workbench timestamp on update |
[4 Jul 2010 16:48]
not available
[5 Jul 2010 5:06]
Valeriy Kravchuk
I was able to reverse engineer database with your table t successfully (on Mac, so this can be Linux-related problem), and I see CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP in DEFAULT field. So, had you tried to enter "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP" in DEFAULT field for the column? For me it works, and proper SQL is generated.
[5 Jul 2010 6:26]
not available
the other way is a problem for me
[5 Jul 2010 12:01]
MySQL Verification Team
I couldn't repeat doing reverse engineer on Fedora 13 X86_64 and Windows Vista.
[6 Jul 2010 9:15]
Susanne Ebrecht
Many thanks for writing a bug report. I made tests here with both directions: 1. in modeling create timestamp column and say default current_timestamp on update current_timestamp Sync this and it end up correct in database system. 2. in database system create such a table with such a column ... sync it and it showed up correct in modeling. In column row at default field you will find: CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP. What is missing here is a nice button or check box for ON UPDATE at the column editor. This would be a nice feature request and so I will set this bug to feature request.
[6 Jul 2010 15:07]
Alfredo Kojima
Added Default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP to context menu
[20 Aug 2010 11:50]
Johannes Taxacher
this has been included in 5.2.26
[2 Sep 2010 16:33]
Tony Bedford
An entry has been added to the 5.2.26 changelog: Added default value of CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP to context menu of column editor for TIMESTAMP columns.