- 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
SQLite PRAGMA table_info returns notnull=1 for columns with DEFAULT, even when they are nullable. Now only checks column existence.
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