fleetfuel/migrations
kianiadee 1bf7e63c62 feat(schema): standardize fuel timestamps to Africa/Nairobi (EAT)
Source feed is UTC ("…Z"); the fleet is in Kenya (UTC+3). Storing UTC timestamptz
made record_datetime::date bucket by UTC day. Migration 03 converts record_datetime,
deleted_at, ingested_at, updated_at (+ ingest_state.updated_at) to Africa/Nairobi
wall-clock `timestamp`, updates the trigger to derive EAT, recreates the views
(fuel_date now EAT day) and re-grants grafana_ro. Verified in prod: 18:38Z -> 21:38 EAT.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 23:58:27 +03:00
..
01_fuel_schema.sql fix(schema): one device per fill in v_fuel_fills (LATERAL + LIMIT 1) 2026-06-11 23:49:37 +03:00
02_fuel_fills_dedupe_join.sql fix(schema): one device per fill in v_fuel_fills (LATERAL + LIMIT 1) 2026-06-11 23:49:37 +03:00
03_fuel_timezone_eat.sql feat(schema): standardize fuel timestamps to Africa/Nairobi (EAT) 2026-06-11 23:58:27 +03:00