Browse Source

fix: 修改默认监控网卡 (#2504)

pull/2505/head
ssongliu 1 year ago committed by GitHub
parent
commit
db613c3bf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      backend/init/migration/migrations/v_1_7.go

2
backend/init/migration/migrations/v_1_7.go

@ -9,7 +9,7 @@ import (
var AddDefaultNetwork = &gormigrate.Migration{ var AddDefaultNetwork = &gormigrate.Migration{
ID: "20230928-add-default-network", ID: "20230928-add-default-network",
Migrate: func(tx *gorm.DB) error { 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 return err
} }
if err := tx.Create(&model.Setting{Key: "LastCleanTime", Value: ""}).Error; err != nil { if err := tx.Create(&model.Setting{Key: "LastCleanTime", Value: ""}).Error; err != nil {

Loading…
Cancel
Save