CURRENT_SCHEMA_VERSION

Constant CURRENT_SCHEMA_VERSION 

Source
pub const CURRENT_SCHEMA_VERSION: u32 = 1;
Expand description

Current schema version.

CRITICAL: Increment this constant when making breaking changes to cached types:

  • Adding/removing struct fields
  • Changing field types
  • Reordering fields
  • Changing enum variants

When deployed with a new version, old cache entries will be automatically evicted and recomputed from the source of truth.