feat(migration): add monitor_jobs.face_settings column
**問題**: - Worker 啟動失敗 - monitor_jobs 缺少 face_settings 欄位 **修復**: - 新增 migration 040 - 新增 schema patch **對應**: - MonitorJob struct 有此欄位 - Worker 需要此欄位初始化 **M4 說明**: - jobs 9 欄版是空表,無影響 - monitor_jobs 才是程式碼使用的表 - 真正問題是 face_settings 缺失
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
-- Migration: 040_add_monitor_jobs_face_settings.sql
|
||||
-- Date: 2026-10-05
|
||||
-- Purpose: Add face_settings column to monitor_jobs
|
||||
-- Note: This column is required by Worker
|
||||
|
||||
BEGIN;
|
||||
|
||||
-- Add face_settings column
|
||||
ALTER TABLE public.monitor_jobs
|
||||
ADD COLUMN IF NOT EXISTS face_settings jsonb;
|
||||
|
||||
-- Add comment
|
||||
COMMENT ON COLUMN public.monitor_jobs.face_settings IS
|
||||
'Face detection settings (min_confidence, min_size)';
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user