From db613c3bf75611922538c32dd856b8a7091f79d8 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:32:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E7=BD=91=E5=8D=A1=20(#2504)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/init/migration/migrations/v_1_7.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/init/migration/migrations/v_1_7.go b/backend/init/migration/migrations/v_1_7.go index a92ecdcd8..d8d621a27 100644 --- a/backend/init/migration/migrations/v_1_7.go +++ b/backend/init/migration/migrations/v_1_7.go @@ -9,7 +9,7 @@ import ( var AddDefaultNetwork = &gormigrate.Migration{ ID: "20230928-add-default-network", Migrate: func(tx *gorm.DB) error { - if err := tx.Create(&model.Setting{Key: "DefaultNetwork", Value: ""}).Error; err != nil { + if err := tx.Create(&model.Setting{Key: "DefaultNetwork", Value: "all"}).Error; err != nil { return err } if err := tx.Create(&model.Setting{Key: "LastCleanTime", Value: ""}).Error; err != nil {