Skip to content

Commit 3094ee5

Browse files
authored
sg migration squash: Fix removal of squashed files (sourcegraph#30407)
1 parent 0d33896 commit 3094ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/sg/internal/migration/squash.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func removeMigrationFilesUpToIndex(database db.Database, targetIndex int) ([]str
306306
}
307307

308308
for _, name := range filtered {
309-
if err := os.Remove(filepath.Join(baseDir, name)); err != nil {
309+
if err := os.RemoveAll(filepath.Join(baseDir, name)); err != nil {
310310
return nil, err
311311
}
312312
}

0 commit comments

Comments
 (0)