Migration 163 renumber skips radar_feed_cache.generated_at on installs upgraded from v3.8.50
Summary
Upgrading from v3.8.50 (npm) to current release/v3.8.51 leaves radar_feed_cache.generated_at missing. On disk, migration 163 is now 163_radar_feed_cache_generated_at.sql. But v3.8.50 shipped model_capabilities as version 163 (it's now 169_model_capabilities.sql), so the runner records 163 as already applied and never runs the ALTER.
Startup logs it on every boot:
[Migration] ⚠️ CRITICAL: 1 migration version(s) have been renumbered!
Version 163: applied as "model_capabilities" but disk has "radar_feed_cache_generated_at"
… version-only tracking will skip these (version already applied)Resulting schema after the upgrade:
sqlite> select name from pragma_table_info('radar_feed_cache') where name='generated_at';
(no rows)
sqlite> select version,name from _omniroute_migrations where version in (163,169);
163|model_capabilities
169|model_capabilitiessrc/lib/db/radar.ts inserts generated_at into radar_feed_cache, so feed-cache writes on these installs fail with no such column: generated_at.
Expected
Upgrading from a published release applies every schema change. Options: a follow-up migration that adds the column when it's missing (idempotent via pragma_table_info), or name-aware reconciliation for renumbered versions.
Workaround
ALTER TABLE radar_feed_cache ADD COLUMN generated_at TEXT DEFAULT NULL;Environment: macOS arm64, Node 22.22.3, upgraded npm 3.8.50 → release/v3.8.51 @ d4bf564a39.
Source: diegosouzapw/OmniRoute