Skip to main content

DATABASE_VERSION

Constant DATABASE_VERSION 

Source
pub(crate) const DATABASE_VERSION: u64 = 17;
Expand description

The current schema version.

  • If database is opened at greater version we reject with error. The software must be updated for backward-incompatible changes.
  • If database is opened at lesser version we apply migrations up to this. Note that named-feature migrations may also be performed when opening at equal or lesser version. These are expected to be backward-compatible.