fix(database): 文本回放 - 统一增量表名并补齐跨库迁移清单
This commit is contained in:
1 parent
a711efff2a
commit
57b9cdf59b
3 files changed
+3
-2
No files matched your search
@@ -117,7 +117,7 @@ func (r *Repository) CleanupTaskTextDeltas(now time.Time) (int64, error) {
|
||||
return err
|
||||
}
|
||||
}
|
||||
result := tx.Where("expires_at <= ? OR NOT EXISTS (SELECT 1 FROM tasks WHERE tasks.id = task_text_deltas.task_id)", now).Delete(&model.TaskTextDelta{})
|
||||
result := tx.Where("expires_at <= ? OR NOT EXISTS (SELECT 1 FROM tasks WHERE tasks.id = task_text_delta.task_id)", now).Delete(&model.TaskTextDelta{})
|
||||
deleted = result.RowsAffected
|
||||
return result.Error
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user