Commit Graph

4 Commits

Author SHA1 Message Date
Motoko
d3a2194c86 migration: add Phase 3 columns (outgoing_links, backlinks_count) 2026-03-31 00:04:59 +00:00
Motoko
202e70b4a8 Add migration script to convert markdown content to TipTap JSON
- Script migrates documents where content (markdown) exists but tiptap_content is NULL
- Idempotent: only processes documents needing migration
- Reports count of processed documents and any errors
- Includes post-migration validation
2026-03-30 23:28:01 +00:00
Motoko
71e5e3570f fix migration: remove notnull validation that fails with DEFAULT NULL
SQLite PRAGMA table_info returns notnull=1 for columns with DEFAULT,
even when they are nullable. Now only checks column existence.
2026-03-30 23:24:12 +00:00
Motoko
38e1237fbc feat: add Phase 2 migration script for documents table
Adds columns: reasoning_type, confidence, reasoning_steps, model_source, tiptap_content

- Skips columns if they already exist (idempotent)
- Includes post-migration validation
- Documents SQLite-compatible rollback procedure
2026-03-30 23:19:34 +00:00