Expand description
Database migrations for schema versioning
Structs§
- Schema
TooNew Error - Distinct error returned by
run_migrationswhen the DB is newer than this binary supports. Surfaced to the user with a friendlier message than a generic SQLite error.
Constants§
- MAX_
KNOWN_ SCHEMA_ VERSION - The highest schema version this binary knows how to produce. Bump
this in lockstep with each new
migrate_vN_to_vM(and add the matchingif current_version < Nline inrun_migrations).
Functions§
- get_
schema_ version - Get the current schema version
- run_
migrations - Run any pending migrations