Skip to content

Commit fa3e873

Browse files
authored
refactor: 移除数据修复脚本 (#108)
1 parent 68891bd commit fa3e873

File tree

3 files changed

+3
-144
lines changed

3 files changed

+3
-144
lines changed

internal/app/app.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"time"
1010

1111
"gpt-load/internal/config"
12-
db "gpt-load/internal/db/migrations"
1312
"gpt-load/internal/keypool"
1413
"gpt-load/internal/models"
1514
"gpt-load/internal/proxy"
@@ -90,7 +89,7 @@ func (a *App) Start() error {
9089
return fmt.Errorf("database auto-migration failed: %w", err)
9190
}
9291
// 数据修复
93-
db.MigrateDatabase(a.db)
92+
// db.MigrateDatabase(a.db)
9493
logrus.Info("Database auto-migration completed.")
9594

9695
// 初始化系统设置

internal/db/migrations/migration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import (
55
)
66

77
func MigrateDatabase(db *gorm.DB) error {
8-
// v1.0.13 修复请求日志数据
9-
return V1_0_13_FixRequestLogs(db)
8+
// return V1_0_13_FixRequestLogs(db)
9+
return nil
1010
}

internal/db/migrations/v1.0.13_fix_request_logs.go

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)