adopt_legacy_table_names

Function adopt_legacy_table_names 

Source
fn adopt_legacy_table_names(conn: &Connection) -> Result<(), StoreError>
Expand description

Rename any pre-flatten objects.db tables to their de-forged names and drop the dead workflow/sentinel tables. Idempotent — on a fresh or already-flat database every check is a no-op.

This is the single surviving fragment of the old v1–v11 chain: it exists only to carry a developer’s pre-flatten objects.db (always at the post-v11 schema, since v11 is merged) forward without data loss. SQLite ≥ 3.25 auto-updates foreign-key references in child tables when a parent table is renamed, so the agent/identity cascades survive.