/** * schemaAssertion.ts * * Boot-time guard for GH #801: PR #785 added a `.sql` migration for * `author_subject`, the write path started reading the column, everything * passed CI, and the migration never ran on prod — every wiki write 400'd * (PGRST204) until it was hotfixed by hand. This makes that failure loud at * boot instead of silent until traffic. * * Single named list so adding a column the write path depends on is a * one-line change. Each entry names the migration file that supplies the * column so the boot-failure message points straight at the fix. */ import type { PostgresSearchIndex } from "./postgresIndex.js"; export declare const REQUIRED_WRITE_PATH_COLUMNS: ReadonlyArray<{ table: string; column: string; migration: string; }>; /** * Verifies every column in REQUIRED_WRITE_PATH_COLUMNS exists on the live * schema. No-ops when Postgres isn't configured — an unconfigured deployment * (sqlite/scan backend) must still boot. Throws on the first missing column, * naming the table, column, and migration file that supplies it; does not * retry. */ export declare function assertWritePathColumns(index: PostgresSearchIndex): Promise; //# sourceMappingURL=schemaAssertion.d.ts.map