all: update atlas (#2739)

This commit is contained in:
Jannik Clausen
2022-07-11 15:25:14 +02:00
committed by GitHub
parent 0f33b0bcb8
commit bc623b3f64
4 changed files with 5 additions and 3 deletions

View File

@@ -183,7 +183,7 @@ func (a *Atlas) NamedDiff(ctx context.Context, name string, tables ...*Table) er
return err
}
if len(s.Tables) > 0 {
return migrate.ErrNotClean
return migrate.NotCleanError{Reason: fmt.Sprintf("found table %q", s.Tables[0].Name)}
}
// Clean up once done.
defer func() {