feat: add persistent system task log cleanup progress

This commit is contained in:
CaIon
2026-06-22 19:16:53 +08:00
parent 6dc4030fdf
commit a162163b48
19 changed files with 984 additions and 51 deletions
+2
View File
@@ -48,6 +48,7 @@ func TestMain(m *testing.M) {
&UserSubscription{},
&UserOAuthBinding{},
&PerfMetric{},
&SystemTask{},
); err != nil {
panic("failed to migrate: " + err.Error())
}
@@ -71,6 +72,7 @@ func truncateTables(t *testing.T) {
DB.Exec("DELETE FROM user_subscriptions")
DB.Exec("DELETE FROM user_oauth_bindings")
DB.Exec("DELETE FROM perf_metrics")
DB.Exec("DELETE FROM system_tasks")
})
}