add comment create support for mysql
This commit is contained in:
parent
6c9f9bf313
commit
e9b7412d75
|
@ -244,6 +244,9 @@ func (b *Base) CreateTableSql(table *Table, tableName, storeEngine, charset stri
|
||||||
sql += col.StringNoPk(b.dialect)
|
sql += col.StringNoPk(b.dialect)
|
||||||
}
|
}
|
||||||
sql = strings.TrimSpace(sql)
|
sql = strings.TrimSpace(sql)
|
||||||
|
if b.DriverName() == MYSQL && len(col.Comment) > 0 {
|
||||||
|
sql += " COMMENT '" + col.Comment + "'"
|
||||||
|
}
|
||||||
sql += ", "
|
sql += ", "
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue