You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Apply migration 00033 (oracle columns on formulacode_task_overrides) to production #71
Migration supabase/migrations/00033_task_overrides_oracle_columns.sql is in main (commit 33bebfa, from #29), but it is not applied to the production database.
A query for the column fails: column formulacode_task_overrides.oracle_speedup does not exist (PostgREST error 42703, checked on 2026-10-20).
No code on main reads or writes these columns yet. The oracle_speedup names in docker/templates/parser.py are local variables, not database columns. So nothing fails today.
The schema in main and the schema in production are different. The first code that stores oracle results in the database will fail until the migration runs.
What the migration does
It adds 5 nullable columns to formulacode_task_overrides and one check constraint. It is additive and safe to run again (add column if not exists, and the constraint is added only when it is missing):
altertable formulacode_task_overrides
add column if not exists oracle_speedup double precision,
add column if not exists oracle_trust text,
add column if not exists oracle_benchmarks jsonb,
add column if not exists oracle_provenance jsonb,
add column if not exists oracle_measured_at timestamptz;
-- plus: check constraint fto_oracle_trust_check (oracle_trust in 'trusted', 'marginal', 'untrusted', or null)
Request
Apply 00033_task_overrides_oracle_columns.sql to production with the usual migration process. The REST API cannot run schema changes; use the Supabase SQL editor or supabase db push.
Check the result with a select on the new columns:
GET /rest/v1/formulacode_task_overrides?select=oracle_speedup,oracle_trust,oracle_benchmarks,oracle_provenance,oracle_measured_at&limit=1
Other migrations exist only on branch lsv-cache (00016 to 00019, 00032 lsv_deps_cache). Production does not have lsv_deps_cache, and no code on main uses it, so nothing is needed for them.
Migration 00033_task_overrides_oracle_columns.sql is applied to production (2026-10-20). It ran directly against the Postgres that db.formulacode.org tunnels to.
Checks after the migration:
formulacode_task_overrides has the 5 new columns: oracle_speedup (double precision), oracle_trust (text), oracle_benchmarks (jsonb), oracle_provenance (jsonb), oracle_measured_at (timestamptz).
Constraint fto_oracle_trust_check exists: CHECK (oracle_trust IS NULL OR oracle_trust IN ('trusted', 'marginal', 'untrusted')).
The 5 existing rows are unchanged.
The request from this issue now returns data through both 127.0.0.1 and https://db.formulacode.org, not error 42703:
Note: supabase_migrations.schema_migrations records versions only up to 00022, so do not use supabase db push on this database. It would try to run 00023 and later again.
Activity
atharvas commentedon Oct 20, 2026
Migration
00033_task_overrides_oracle_columns.sqlis applied to production (2026-10-20). It ran directly against the Postgres thatdb.formulacode.orgtunnels to.Checks after the migration:
formulacode_task_overrideshas the 5 new columns:oracle_speedup(double precision),oracle_trust(text),oracle_benchmarks(jsonb),oracle_provenance(jsonb),oracle_measured_at(timestamptz).fto_oracle_trust_checkexists:CHECK (oracle_trust IS NULL OR oracle_trust IN ('trusted', 'marginal', 'untrusted')).127.0.0.1andhttps://db.formulacode.org, not error 42703:Note:
supabase_migrations.schema_migrationsrecords versions only up to 00022, so do not usesupabase db pushon this database. It would try to run 00023 and later again.