Constant zebra_state::constants::DATABASE_FORMAT_VERSION
source · const DATABASE_FORMAT_VERSION: u64 = 26;
Expand description
The database format major version, incremented each time the on-disk database format has a breaking data format change.
Breaking changes include:
- deleting a column family, or
- changing a column family’s data format in an incompatible way.
Breaking changes become minor version changes if:
- we previously added compatibility code, and
- it’s available in all supported Zebra versions.
Instead of using this constant directly, use constants::state_database_format_version_in_code()
or config::database_format_version_on_disk()
to get the full semantic format version.