Bug #86232 | Cannot properly migrate columns with DEFAULT CURRENT TIME | ||
---|---|---|---|
Submitted: | 9 May 2017 2:26 | Modified: | 25 Sep 2017 7:19 |
Reporter: | Erica Kane | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Workbench: Migration | Severity: | S2 (Serious) |
Version: | 6.3 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | sqlanywhere |
[9 May 2017 2:26]
Erica Kane
[9 May 2017 8:57]
MySQL Verification Team
Hello Erica Kane, Thank you for the bug report. Discussed internally with WB developer and confirmed that "CURRENT TIMESTAMP" is handled during migration and this seems to be something else causing the problem, could you please provide full(unaltered) WB log to investigate further on this issue? Also, provide exact table definition to reproduce the issue at our end. Thanks, Umesh
[9 May 2017 12:26]
Erica Kane
Workbech log of migration
Attachment: wb.log (application/octet-stream, text), 14.38 KiB.
[9 May 2017 12:27]
Erica Kane
Script generated to perform migration
Attachment: migration_script.sql (application/octet-stream, text), 1.71 KiB.
[9 May 2017 12:32]
Erica Kane
Thank you, I have attached the requested log file along with the generated migration script. I defined the table in SQL Anywhere 16 as CREATE TABLE DBA.MYSQL_TEST ( NAME VARCHAR(20) NOT NULL, ENROLL_DATE TIMESTAMP DEFAULT CURRENT TIMESTAMP ); and then INSERT INTO MYSQL_TEST (NAME) VALUES ('Test Person'); I then attempted to migrate only that table, and got the warning that "Default current timestamp is not supported. Removed!" As you can see in the attached migration script that was generated, that default was indeed removed.
[25 Sep 2017 7:19]
Chiranjeevi Battula
Hello Erica, Thank you for the bug report. Verified this behavior on SQL Anywhere 17 and MySQL Workbench in 6.3.9 version. Thanks, Chiranjeevi.
[25 Sep 2017 7:20]
Chiranjeevi Battula
Screenshot
Attachment: Bug_86232.JPG (image/jpeg, text), 209.28 KiB.