Files
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

3 lines
205 B
SQL

-- 112: 메모 목록 최적화 인덱스 (핀 우선 + 최신순)
CREATE INDEX IF NOT EXISTS idx_documents_notes ON documents(pinned DESC, created_at DESC) WHERE file_type = 'note' AND deleted_at IS NULL