Files
hyungi_document_server/migrations/109_memo_columns.sql
T
Hyungi Ahn e3a065d15d fix(memos): migration을 개별 파일로 분리 (asyncpg multi-statement 미지원)
asyncpg prepared statement가 multi-command를 지원하지 않아 시작 실패.
105 단일 파일을 105-112 개별 statement로 분리.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 16:02:45 +09:00

4 lines
245 B
SQL

-- 109: 메모 지원 컬럼 추가 (user_tags, pinned, ask_includable)
-- file_hash는 note에서 content SHA-256 (파일 해시가 아닌 본문 버전 해시)
ALTER TABLE documents ADD COLUMN IF NOT EXISTS user_tags JSONB DEFAULT '[]'::jsonb