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) {