From 529ac0d0846e43001f39437e8d4984417bc50016 Mon Sep 17 00:00:00 2001 From: veypi Date: Wed, 29 Apr 2026 20:14:51 +0800 Subject: [PATCH] chore(cfg): Change default database to SQLite - Switch default DB type from mysql to sqlite - Update default DSN to local SQLite file path /tmp/vbase.db --- cfg/cfg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfg/cfg.go b/cfg/cfg.go index eba5e2a..a1063af 100644 --- a/cfg/cfg.go +++ b/cfg/cfg.go @@ -51,9 +51,9 @@ type InitAdminConfig struct { // Global全局配置实例 var Global = &Options{ DB: config.Database{ - Type: "mysql", + Type: "sqlite", Prefix: "vb_", - DSN: "root:123456@tcp(127.0.0.1:3306)/vbase?charset=utf8mb4&parseTime=True&loc=Local", + DSN: "/tmp/vbase.db", }, Redis: config.Redis{ Addr: "memory",