Constant PROJECTION_SCHEMA_VERSION
pub const PROJECTION_SCHEMA_VERSION: u32 = 1;Available on crate feature
projection-store and (crate features event-store or projection-store) only.Expand description
The projection schema version this crate’s code is written against.
One, and separate from SCHEMA_VERSION on purpose. The two roles share a
crate and a driver; they do not share a schema lineage. A consumer taking
event-store alone applies migration 1 and never this one, so a single
counter spanning both would report a version they are not at.
The file is named 0002_… because that is the directory’s sequence and a DBA
applying the files in order should get a working database for both roles. The
number in the filename and the number here answer different questions.