add back in the quotes
Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
ded774e38d
commit
84265754bd
|
@ -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 + "'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue