fix: set withHistory flag to true for non-interactive mode (#107263)

This commit is contained in:
Mustafa Sencer Özcan
2025-06-26 16:08:30 +00:00
committed by GitHub
parent 3ec907bbe6
commit c47fc53eee
23 changed files with 394 additions and 191 deletions
@@ -85,6 +85,7 @@ func ToUnifiedStorage(c utils.CommandLine, cfg *setting.Cfg, sqlStore db.DB) err
if c.Bool("non-interactive") {
opts.Store = client
opts.BlobStore = client
opts.WithHistory = true // always include history in non-interactive mode
rsp, err := migrator.Migrate(ctx, opts)
if exitErr := handleMigrationError(err, rsp); exitErr != nil {
return exitErr