mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
dialect/sql/schema: pass unit to atlas constructor (#4420)
This commit is contained in:
@@ -241,7 +241,9 @@ func (d *MySQL) atIncrementC(t *schema.Table, c *schema.Column) {
|
||||
}
|
||||
|
||||
func (d *MySQL) atIncrementT(t *schema.Table, v int64) {
|
||||
t.AddAttrs(&mysql.AutoIncrement{V: v})
|
||||
if v >= 0 {
|
||||
t.AddAttrs(mysql.NewAutoIncrement(uint64(v)))
|
||||
}
|
||||
}
|
||||
|
||||
func (d *MySQL) atImplicitIndexName(idx *Index, c1 *Column) bool {
|
||||
|
||||
Reference in New Issue
Block a user