Skip to main content

MAX_KNOWN_SCHEMA_VERSION

Constant MAX_KNOWN_SCHEMA_VERSION 

Source
pub const MAX_KNOWN_SCHEMA_VERSION: i32 = 28;
Expand description

The highest schema version this binary knows how to produce. Bump this in lockstep with each new migrate_vN_to_vM (and add the matching if current_version < N line in run_migrations).

run_migrations refuses to open a DB whose schema_version is higher than this — that would mean a newer build wrote it, and blindly reading would expose missing tables / columns to old code.