add back in the quotes

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
Andrew Thornton 2020-08-30 08:53:45 +01:00
parent ded774e38d
commit 84265754bd
No known key found for this signature in database
GPG Key ID: 3CDE74631F13A748
1 changed files with 3 additions and 1 deletions

View File

@ -404,7 +404,9 @@ func (db *mysql) GetColumns(queryer core.Queryer, ctx context.Context, tableName
} }
if !col.DefaultIsEmpty { if !col.DefaultIsEmpty {
if col.SQLType.IsTime() && col.Default != "CURRENT_TIMESTAMP" { if col.SQLType.IsText() {
col.Default = "'" + col.Default + "'"
} else if col.SQLType.IsTime() && col.Default != "CURRENT_TIMESTAMP" {
col.Default = "'" + col.Default + "'" col.Default = "'" + col.Default + "'"
} }
} }