all: update atlasgo.io to latest (#2376)

This commit is contained in:
Ariel Mashraki
2022-03-04 22:53:37 +02:00
committed by GitHub
parent 35a098fdbb
commit 3aab4d91c2
11 changed files with 59 additions and 34 deletions

View File

@@ -171,7 +171,7 @@ func (m *Migrate) Diff(ctx context.Context, tables ...*Table) error {
if err != nil {
return err
}
return migrate.New(nil, m.atlas.dir, m.atlas.fmt).WritePlan(plan)
return migrate.NewPlanner(nil, m.atlas.dir, migrate.WithFormatter(m.atlas.fmt)).WritePlan(plan)
}
func (m *Migrate) create(ctx context.Context, tables ...*Table) error {