mirror of
https://github.com/ent/ent.git
synced 2026-05-05 00:50:54 +03:00
dialect/sql/schema: add field collation support (#1548)
* specific field collation support * go generate ./...
This commit is contained in:
@@ -284,6 +284,8 @@ func (d *MySQL) addColumn(c *Column) *sql.ColumnBuilder {
|
||||
if c.Increment {
|
||||
b.Attr("AUTO_INCREMENT")
|
||||
}
|
||||
|
||||
c.collation(b)
|
||||
c.nullable(b)
|
||||
c.defaultValue(b)
|
||||
if c.Type == field.TypeJSON {
|
||||
|
||||
Reference in New Issue
Block a user