feat: 오피스 → ODF 변환 + 원본/편집본 분리 아키텍처
- original_path/format/hash + conversion_status 필드 추가 (migration 007)
- extract_worker: 텍스트 추출 후 xlsx→ods, docx→odt 등 ODF 변환
- 변환본은 .derived/{doc_id}.ods 에 저장
- 원본 메타 보존 (original_path/format/hash)
- file_watcher: .derived/ .preview/ 디렉토리 제외
- DocumentViewer: ODF 포맷이면 편집 버튼 자동 표시
- edit_url 있으면 "편집", 없으면 "Synology Drive에서 열기"
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
5
migrations/007_original_fields.sql
Normal file
5
migrations/007_original_fields.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- 원본/변환 분리 필드 추가
|
||||
ALTER TABLE documents ADD COLUMN IF NOT EXISTS original_path TEXT;
|
||||
ALTER TABLE documents ADD COLUMN IF NOT EXISTS original_format VARCHAR(20);
|
||||
ALTER TABLE documents ADD COLUMN IF NOT EXISTS original_hash VARCHAR(64);
|
||||
ALTER TABLE documents ADD COLUMN IF NOT EXISTS conversion_status VARCHAR(20) DEFAULT 'none';
|
||||
Reference in New Issue
Block a user