fix: 修复日志表数据
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"time"
|
||||
|
||||
"gpt-load/internal/config"
|
||||
db "gpt-load/internal/db/migrations"
|
||||
"gpt-load/internal/keypool"
|
||||
"gpt-load/internal/models"
|
||||
"gpt-load/internal/proxy"
|
||||
@@ -88,6 +89,8 @@ func (a *App) Start() error {
|
||||
); err != nil {
|
||||
return fmt.Errorf("database auto-migration failed: %w", err)
|
||||
}
|
||||
// 数据修复
|
||||
db.MigrateDatabase(a.db)
|
||||
logrus.Info("Database auto-migration completed.")
|
||||
|
||||
// 初始化系统设置
|
||||
|
Reference in New Issue
Block a user