diff --git a/internal/db/pull/pull.go b/internal/db/pull/pull.go index 5ff04424e..435556739 100644 --- a/internal/db/pull/pull.go +++ b/internal/db/pull/pull.go @@ -111,7 +111,7 @@ func diffRemoteSchema(p utils.Program, ctx context.Context, schema []string, pat if len(output) == 0 { return errors.New(errInSync) } - if err := afero.WriteFile(fsys, path, []byte(output), 0644); err != nil { + if err := utils.WriteFile(path, []byte(output), fsys); err != nil { return errors.Errorf("failed to write dump file: %w", err) } return nil