Schema Comparison generates invalid sql for DEFAULT CURRENT_TIMESTAMP
Posted: Fri 21 Nov 2014 00:25
Has this been fixed?
To reproduce:
1.
2. use schema comparison to compare with another database that does not have this table. The following sql is generated. It puts quotes around the CURRENT_TIMESTAMP keyword which is invalid for a DEFAULT.
To reproduce:
1.
Code: Select all
CREATE TABLE table1 (
col1 int(11) DEFAULT NULL,
created datetime DEFAULT CURRENT_TIMESTAMP
)
Code: Select all
CREATE TABLE table1 (
col1 int(11) DEFAULT NULL,
created datetime DEFAULT 'CURRENT_TIMESTAMP'
)