2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

feat: fix 命令支持修复数据库

This commit is contained in:
耗子
2024-12-29 21:34:19 +08:00
parent ee48623545
commit 484eb24083

View File

@@ -571,6 +571,9 @@ func (r *backupRepo) FixPanel() error {
flag = true
}
// 检查数据库连接
if err := r.db.Exec("VACUUM").Error; err != nil {
flag = true
}
if err := r.db.Exec("PRAGMA wal_checkpoint(TRUNCATE);").Error; err != nil {
flag = true
}