Skip to main content

SCHEMA_VERSION

Constant SCHEMA_VERSION 

Source
pub const SCHEMA_VERSION: u32 = 15;
Expand description

Schema version this build understands, stored in SQLite’s user_version.

The baseline is 2, not 1, on purpose. Builds before 0.5.4 stamped user_version = 1 over the pre-canonical schema — no CHECK constraints, second-precision timestamps, the narrow sentinel. Had the canonical baseline kept the number 1, one of those files would open silently and every guarantee D-029 buys would be void on it while user_version insisted all was well. Reserving 1 as a value this build refuses by name is what makes “no legacy support” an enforced property instead of a README sentence.