dialect/sql/schema: pass unit to atlas constructor (#4420)

This commit is contained in:
Ariel Mashraki
2025-07-31 11:10:01 +03:00
committed by GitHub
parent 9442826ba6
commit 175d96f7ec
8 changed files with 40 additions and 32 deletions

View File

@@ -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 {