mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
Adds two nullable columns to AuditLog (`asn Int?` + `carrier String?`) via an additive `IF NOT EXISTS`-guarded migration. The audit-log write path now resolves the location and the ASN row in parallel and writes whichever fields the resolvers could fill in a single update. A new `runGeoBackfill` helper walks rows where `location IS NULL` AND `ipAddress IS NOT NULL` AND `createdAt > now() - 30 days`, capped at 5 000 rows per pass. Useful for picking up rows that landed during an `ipwho.is` outage or before the GeoLite2 MMDBs were bundled into the image.