mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-07-28 12:32:28 +02:00
bddec0c9c2
Replaces ec40c67c8c83, 6b3430fd84f4 and cf8dd7eaba9b (never deployed to production) with one migration that builds the final route-health schema directly on top of the production head 57bb65130b97. The consolidated migration creates the seven route tables, adds the nullable event_hash column to raw_packets, and runs three idempotent backfills: packet_path_hops from raw_packets.decoded, nodes dedup by public_key, and route_result_history + quality_avg for enabled routes. On a freshly-restored production snapshot the route-history backfill is a no-op (no routes exist yet) but is retained for idempotency against dev backups that do have routes.