Files
syn-chat-bot/init/migrate-v7.sql
Hyungi Ahn 323de7afbe feat: 작업(VTODO) 파이프라인 구현 — n8n todo intent + Handle Todo 노드
- Qwen 분류기에 todo intent 추가 (프롬프트 + keyword fallback)
- Route by Intent switch에 Todo case 추가
- Handle Todo 코드 노드 신규: Qwen 추출 → CalDAV create-todo → DB 저장
- migrate-v7.sql: calendar_events에 event_type 컬럼 + start_time nullable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 15:06:00 +09:00

9 lines
443 B
SQL

-- migrate-v7.sql: calendar_events에 todo 지원 추가
-- 실행: docker exec -i bot-postgres psql -U bot -d chatbot < init/migrate-v7.sql
-- event_type: 'event' (VEVENT) | 'todo' (VTODO)
ALTER TABLE calendar_events ADD COLUMN IF NOT EXISTS event_type VARCHAR(10) DEFAULT 'event';
-- start_time을 nullable로 변경 (todo는 시작시간 없이 due만 가질 수 있음)
ALTER TABLE calendar_events ALTER COLUMN start_time DROP NOT NULL;