From 0daf2418fcf5cefda13e0be07dc52147cf810b85 Mon Sep 17 00:00:00 2001 From: PJ Date: Wed, 6 Dec 2023 13:49:47 +0100 Subject: [PATCH] stores: default prune to false --- stores/migrations.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stores/migrations.go b/stores/migrations.go index c84b76432..fe29ce87c 100644 --- a/stores/migrations.go +++ b/stores/migrations.go @@ -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")