mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: resolve merge conflicts on global id file (#4312)
This commit is contained in:
@@ -860,7 +860,7 @@ func (a *Atlas) tables(tables []*Table) ([]*schema.Table, error) {
|
||||
}
|
||||
a.sqlDialect.atIncrementT(at, r)
|
||||
case et.Annotation != nil && et.Annotation.IncrementStart != nil:
|
||||
a.sqlDialect.atIncrementT(at, *et.Annotation.IncrementStart)
|
||||
a.sqlDialect.atIncrementT(at, int64(*et.Annotation.IncrementStart))
|
||||
}
|
||||
if err := a.aColumns(et, at); err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -376,7 +376,7 @@ func TestAtlas_StateReader(t *testing.T) {
|
||||
{Name: "active", Type: field.TypeBool},
|
||||
},
|
||||
Annotation: &entsql.Annotation{
|
||||
IncrementStart: func(i int64) *int64 { return &i }(100),
|
||||
IncrementStart: func(i int) *int { return &i }(100),
|
||||
},
|
||||
}).ReadState(context.Background())
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user