fleettickets/migrations
david kiania 8e119e2328 feat: tickets.inc_open_sla view + lowercase legacy region
- Add tickets.inc_open_sla: open tickets with derived SLA (hours_open, sla_state
  vs 48h; clock = created_at_service or first_seen_at fallback) + team/cluster/geog
  for dispatch. (One-time legacy region->lowercase backfill applied to live data.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 00:03:55 +03:00
..
01_tickets_schema.sql feat: fleettickets — INC/CRQ ticket ingestion, geocoding + read-schema 2026-06-11 20:13:50 +03:00
02_import_meta.sql feat: INC hourly-CSV ingestion (newest-file, ETag dedup, clean + archive) 2026-06-15 19:33:16 +03:00
03_inc_columns.sql feat: unpack tickets.inc.raw into typed generated columns (migration 03) 2026-06-15 23:08:31 +03:00
04_inc_latlng.sql feat: populate inc latitude/longitude from geocoded geom (migration 04) 2026-06-15 23:26:39 +03:00
05_inc_geography.sql feat: add geography column + GiST index for routing (migration 05) 2026-06-15 23:33:45 +03:00
06_inc_mttr_minutes.sql feat: mttr -> minutes; drop constant alarm/auto flags (migration 06) 2026-06-15 23:51:28 +03:00
07_inc_drop_service_type.sql feat: drop constant service_type column (migration 07) 2026-06-15 23:54:43 +03:00
08_inc_open_sla_view.sql feat: tickets.inc_open_sla view + lowercase legacy region 2026-06-16 00:03:55 +03:00