Skip to content

[Supabase] Baseball schema drift — 12 columns queried by code are missing in prod DB #651

Description

@njrini99-code

Detected by the Mission Control sweep — Supabase postgres logs, 2026-07-01 ~17:40–17:41Z.

The (shared golf-prod) DB is throwing a live cluster of column ... does not exist errors — deployed code is querying columns that don't exist in the database. Root cause is the known pattern: migrations committed but not applied ahead of the code (several current baseball PRs note "migration committed only, not applied").

Missing columns — 12 distinct, ~50 errors in one minute:

  • baseball_teams.program_type — ~35×, dominant
  • baseball_practice_effectiveness_reviews.disposition
  • baseball_practice_effectiveness_reviews.focus_area
  • baseball_stat_sources.source_name
  • baseball_fielding_events.measured_at
  • baseball_fielding_events.chance_difficulty
  • baseball_baserunning_events.measured_at
  • baseball_baserunning_events.runner_id
  • baseball_catching_events.measured_at
  • baseball_catching_events.catcher_id
  • baseball_plate_appearances.data_context
  • baseball_decision_log.detail

Triage (human): verify each column via information_schema (NOT schema_migrations history — unreliable), then apply the missing migrations to prod. Do not auto-apply DDL.

Filed automatically by Mission Control · reads fail gracefully (not a hard outage) but this is a feature-breakage / data-integrity risk.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions