Skip to main content

apply_cmd

Function apply_cmd 

Source
pub fn apply_cmd(
    workspace: Option<PathBuf>,
    fake: bool,
    reason: Option<String>,
    node_id: Option<u32>,
    single_node_dev: bool,
) -> ExitCode
Expand description

djogi migrations apply entry point. Discovers pending JSON files under target/djogi_pending/, loads the committed replay plan for each, and drives djogi::migrate::apply_plan through the library runner after CLI-side ledger-state classification. Pending rows require operator resolution. Caller-gated Failed/RolledBack rows are reapply-blocking cleanup candidates before runner invocation. Phase 0 cleanup is identity-free replay-current-only: seed-capable runtime, seed-DML non-runtime-current, missing, incomplete, generated-stale, or ambiguous artifacts refuse before delete.