mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-01 02:04:24 +00:00
Every run is a Petri run whose history is `petri_records` and `platform_records`, so the legacy run event log has no reader left. The new migration drops `run_events` (with its indexes), the two one-time activation tables, and rebuilds `runs` without the columns only that log wrote or read: `source_last_seq` and the six token and file-count columns nothing read, as VIEWS.md records. Pre-cutover development runs are discarded, as decided; the surviving columns of existing rows are copied across. fabro-db loses the three migration consts of the dropped schema and the session-owner preflight that inspected `run_events`, and gains `DROP_RUN_EVENTS_MIGRATION_SQL` so fixtures that install the runs schema reach the production shape. The run summary upsert binds only the surviving columns. Tests: the `run_events` schema, query-plan and preflight tests are deleted; `runs_schema_has_its_final_shape_without_the_legacy_event_log` pins the final columns and indexes, and `dropping_the_event_log_keeps_the_run_rows` migrates a database left by an older binary and checks the run row survives. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| build-support | ||
| fabro-api | ||
| fabro-auth | ||
| fabro-client | ||
| fabro-config | ||
| fabro-db | ||
| fabro-dev | ||
| fabro-http | ||
| fabro-macros | ||
| fabro-oauth | ||
| fabro-options-metadata | ||
| fabro-proc | ||
| fabro-redact | ||
| fabro-static | ||
| fabro-telemetry | ||
| fabro-template | ||
| fabro-test | ||
| fabro-types | ||
| fabro-util | ||
| fabro-vault | ||