Skip to content

Commit

Permalink
stores: default prune to false
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Dec 6, 2023
1 parent def1c8f commit 0daf241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stores/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -1393,12 +1393,12 @@ func performMigration00035_contractPruneCfg(txn *gorm.DB, logger *zap.SugaredLog
}

for _, autopilot := range autopilots {
autopilot.Config.Contracts.Prune = true
autopilot.Config.Contracts.Prune = false
if err := txn.Save(&autopilot).Error; err != nil {
logger.Errorf("failed to set default value for Contracts.Prune on autopilot '%v', err: %v", autopilot.Identifier, err)
return err
}
logger.Debugf("successfully defaulted Contracts.Prun to 'true' on autopilot '%v'", autopilot.Identifier)
logger.Debugf("successfully defaulted Contracts.Prun to 'false' on autopilot '%v'", autopilot.Identifier)
}

logger.Info("migration 00035_contractPruneCfg complete")
Expand Down

0 comments on commit 0daf241

Please sign in to comment.