Skip to content

Prod migrate — Operations Intelligence v1.4

Operations Intelligence v1.4 — prod database apply

Apply after code deploy. Backfills (18220000, 18230000) are already on prod.

Prod status (June 2026)

MigrationPurposeProd
20260617120000_reports_v2_operational_kpisBase Operational KPIs RPC
20260618120000_reports_v2_operator_productivityBase Operator Productivity RPC
20260618141000_pick_lists_delivered_bydelivered_by column
20260618150000_reports_v2_operator_productivity_auditPick/pack attribution
20260618200000_reports_v2_operational_kpis_fulfilment_alignAlign KPIs with OMS stages
20260618210000_pick_lists_dispatched_bydispatched_by column
20260618220000_backfill_pick_list_dispatch_deliverHistorical deliver credit
20260618230000_backfill_dispatched_by_from_packerHistorical dispatch credit
20260618240000_reports_v2_operator_productivity_perfOperator Productivity timeout fixpending
20260618260000_reports_v2_operational_kpis_v1_4KPI grain, stickers, series perf (final RPC)pending

Dev may show extra schema_migrations rows from iterative work (1714000017190000, etc.). Those files are not in the repo; prod never needs them.

Apply command

Terminal window
CONFIRM_PROD_MIGRATE=yes node scripts/db/apply-selected-migrations.mjs --prod \
20260618240000_reports_v2_operator_productivity_perf \
20260618260000_reports_v2_operational_kpis_v1_4

Verify:

Terminal window
node scripts/db/check-oms-ops-migrations.mjs

Smoke-test:

  • /reports/v2/operations/operational-kpis?from=2026-05-01&to=2026-05-31
  • /reports/v2/operations/operator-productivity?from=2026-05-01&to=2026-06-17