mirror of
https://github.com/ent/ent.git
synced 2026-05-04 00:20:58 +03:00
dialect/entsql: add support for table-options in annotation (#938)
This commit is contained in:
@@ -183,6 +183,9 @@ func (d *MySQL) tBuilder(t *Table) *sql.TableBuilder {
|
||||
if collate := t.Annotation.Collation; collate != "" {
|
||||
b.Collate(collate)
|
||||
}
|
||||
if opts := t.Annotation.Options; opts != "" {
|
||||
b.Options(opts)
|
||||
}
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user