Skip to main content

Module m0049_drone_versions

Module m0049_drone_versions 

Source
Expand description

The table behind graph versions (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.3, “Graph versions”).

Saving a drone records db_drone_versions(drone_id, version, graph, hash, saved_at, saved_by), keyed by (drone_id, version); a job pins latest or a number. There is no foreign key to db_drone_definitions: a drone’s definition and its runs can live in different stores (m0038), so a version of a drone that is only in another store must still save.

The table belongs beside the definitions, in the shared store, and the per-channel store is created too for the fallback id_store of an install whose shared backfill has not run (pick_id_store). Both are IF NOT EXISTS, so a second run changes nothing.

Structs§

M0049DroneVersions