This commit is contained in:
2026-08-16 15:11:38 +08:00
parent f7f6db8695
commit a85477be80
40 changed files with 761 additions and 144 deletions
+2 -3
View File
@@ -35,9 +35,8 @@ func migrateAll(db *gorm.DB) error {
return reconcileReferenceIndexes(db)
}
// Older Kra builds used a status label that is not part of the GVA error-log
// contract and is therefore rendered as an unknown state by the compatible
// administration page.
// Older builds used a status label outside the administration page's supported
// state set, so normalize existing rows during migration.
func normalizeErrorRecordStatuses(db *gorm.DB) error {
return db.Model(&errorRecordPO{}).Where("status = ?", "未解决").Update("status", "未处理").Error
}