nordabiz/database/migrations/060_rename_fid_to_inp.sql
Maciej Pienczyn ef39ebf8a3
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
refactor(seo): Rename FID to INP across entire codebase
Google replaced First Input Delay (FID) with Interaction to Next Paint
(INP) as a Core Web Vital in March 2024. This renames the DB column
from first_input_delay_ms to interaction_to_next_paint_ms, updates the
PageSpeed client to prefer the INP audit key, and fixes all references
across routes, services, scripts, and report generators. Updated INP
thresholds: good ≤200ms, needs improvement ≤500ms.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 12:58:41 +01:00

9 lines
456 B
SQL

-- Migration 060: Rename first_input_delay_ms to interaction_to_next_paint_ms
-- Google replaced FID with INP (Interaction to Next Paint) as a Core Web Vital in March 2024
-- The PageSpeed API now returns INP data, so the column name should reflect the actual metric
ALTER TABLE company_website_analysis RENAME COLUMN first_input_delay_ms TO interaction_to_next_paint_ms;
-- Grant permissions
GRANT ALL ON TABLE company_website_analysis TO nordabiz_app;