v0.1.9
Hotfix — Migration fix for upgrading users
Bug Fixes
-
Indexes created before columns existed. The
CREATE INDEXstatements for new columns (scope,topic_key,normalized_hash,updated_at,deleted_at) ran in the initial schema batch before theALTER TABLE ADD COLUMNcalls. This causedSQL logic error: no such column: scopefor users upgrading from pre-0.1.8 databases. Fixed by removing the duplicate index definitions from the initial batch — they already existed in the correct location after the column migrations. -
Non-constant default in ALTER TABLE. The
updated_atcolumn migration usedDEFAULT (datetime('now')), which SQLite does not allow inALTER TABLE ADD COLUMN(only inCREATE TABLE). Changed to a constant empty-string default; the existing backfillUPDATEalready setsupdated_at = created_atfor migrated rows.
Root Cause
Both bugs only affected users upgrading from pre-0.1.8 databases. New installations were unaffected because CREATE TABLE handles the full schema including expressions and indexes in one pass.
Notes
- No data changes, no new features.
- Safe to upgrade from any previous version.
- Full test suite passing.