cartulary 0.3.0-alpha.1

The knowledge layer of your project — decisions, issues, docs, all in one place.
Documentation
//! Migration steps, one file per version transition. Each file is
//! self-contained: it owns the pure frontmatter transform, the
//! `MigrationStep` impl that orchestrates I/O, and the unit tests that pin
//! both. To add a new migration, create a new file here and append its
//! struct to [`all`].
//!
//! ```text
//! v02_to_v03_flow_tags       — lift scalar type/priority/size into tags (ADR-0021)
//! v03_to_v04_rewrite_ids     — sequential ids → TSID, rename record dirs (ADR-0022)
//! v03_to_v04_rewrite_links   — rewrite cross-record link targets (ADR-0022)
//! v04_to_v05_extract_relates — links {relationship: relates} → top-level relates: (DDR-018QWJVHRH35B)
//! v05_to_v06_dr_status       — canonicalise non-canonical DR statuses (DDR-018QWJVHRH35B)
//! v05_to_v06_back_pointers   — backfill superseded-by / amended-by inverses (DDR-018QWJVHRH35B)
//! v06_to_v07_event_log_to_jsonl — lift events: into events.jsonl companion (ADR-01HMR0G23XH0N)
//! v07_to_v08_tsid_to_ulid       — rewrite TSID ids to ULID + rewrite cross-refs (ADR-01JAKPGBYT2PF)
//! ```

use super::MigrationStep;

pub(super) mod v02_to_v03_flow_tags;
pub(super) mod v03_to_v04_rewrite_ids;
pub(super) mod v03_to_v04_rewrite_links;
pub(super) mod v04_to_v05_extract_relates;
pub(super) mod v05_to_v06_back_pointers;
pub(super) mod v05_to_v06_dr_status;
pub(super) mod v06_to_v07_event_log_to_jsonl;
pub(super) mod v07_to_v08_tsid_to_ulid;

pub(super) fn all() -> Vec<Box<dyn MigrationStep>> {
    vec![
        Box::new(v02_to_v03_flow_tags::V02ToV03FlowTags),
        Box::new(v03_to_v04_rewrite_ids::V03ToV04RewriteIds),
        Box::new(v03_to_v04_rewrite_links::V03ToV04RewriteLinks),
        Box::new(v04_to_v05_extract_relates::V04ToV05ExtractRelates),
        Box::new(v05_to_v06_dr_status::V05ToV06DrStatus),
        Box::new(v05_to_v06_back_pointers::V05ToV06BackPointers),
        Box::new(v06_to_v07_event_log_to_jsonl::V06ToV07EventLogToJsonl),
        Box::new(v07_to_v08_tsid_to_ulid::V07ToV08RewriteIds),
        Box::new(v07_to_v08_tsid_to_ulid::V07ToV08RewriteLinks),
    ]
}