Skip to main content

check_version_gate

Function check_version_gate 

Source
pub async fn check_version_gate(
    pool: &SqlitePool,
    app_version: &GitVersion,
) -> Result<VersionGateResult, Error>
Expand description

Checks whether the database version is compatible with the running app.

A Downgrade result means the database was touched by a newer Cadmus version with different schema migrations, so a backup from the current app version should be restored.