P0 fixes: - ModelError.Is(): use exact matching instead of substring contains() - shouldClearStickySession: add context param for cancellation/tracing P1 fixes: - TODO stubs: return 501 Not Implemented errors - validateInstanceSignature: deduplicate to shared validateCodeSignature() - Error messages: standardize to English only - http.go: remove pseudo if-else with duplicate branches
11 lines
377 B
SQL
11 lines
377 B
SQL
-- 043_add_usage_cleanup_cancel_audit.sql
|
|
-- usage_cleanup_tasks 取消任务审计字段
|
|
|
|
ALTER TABLE usage_cleanup_tasks
|
|
ADD COLUMN IF NOT EXISTS canceled_by BIGINT REFERENCES users(id) ON DELETE SET NULL,
|
|
ADD COLUMN IF NOT EXISTS canceled_at TIMESTAMPTZ;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_usage_cleanup_tasks_canceled_at
|
|
ON usage_cleanup_tasks(canceled_at DESC);
|
|
|