From d333c7a9af9a029361b4bdc7398f66f14f30a427 Mon Sep 17 00:00:00 2001 From: zhangchenhao Date: Wed, 14 May 2025 18:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9init?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/migrations/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/migrations/init.go b/backend/migrations/init.go index 29689d7..9974eb5 100644 --- a/backend/migrations/init.go +++ b/backend/migrations/init.go @@ -234,7 +234,7 @@ INSERT INTO settings (key, value, create_time, update_time, active, type) VALUES InsertIfNotExists(db, "access_type", map[string]any{"name": "baidu", "type": "host"}, []string{"name", "type"}, []any{"baidu", "host"}) InsertIfNotExists(db, "access_type", map[string]any{"name": "baidu", "type": "dns"}, []string{"name", "type"}, []any{"baidu", "dns"}) - InsertIfNotExists(db, "access_type", map[string]any{"name": "btwaf", "type": "dns"}, []string{"name", "type"}, []any{"btwaf", "dns"}) + InsertIfNotExists(db, "access_type", map[string]any{"name": "btwaf", "type": "host"}, []string{"name", "type"}, []any{"btwaf", "host"}) } func insertDefaultData(db *sql.DB, table, insertSQL string) {