Skip to main content

Module migration

Module migration 

Source
Expand description

Database schema versioning and migrations.

Structs§

Migration
A single migration step.
MigrationResult
Result of running migrations.

Constants§

CURRENT_SCHEMA_VERSION
The current schema version supported by this build.

Functions§

check_compatibility
Check if the database is compatible with this version of keep.
initialize_schema
Initialize the schema version for a new database.
needs_migration
Check if migrations are needed.
read_schema_version
Read the schema version from the database.
run_migrations
Run all pending migrations.
write_schema_version
Write the schema version to the database.

Type Aliases§

MigrationFn
A migration function that transforms the database schema.