pub async fn check_schema_version(
pool: &PgPool,
required: u32,
) -> Result<(), EngineError>Expand description
Compare the Postgres migration ledger against the binary’s required schema version and enforce Q12’s boot-time contract.
required is the migration version the caller’s binary was
built against (typically a const REQUIRED_SCHEMA_VERSION: u32
ff-server embeds).
Wave 0 scope: implements the < (refuse) + == (pass) +
> (warn) branches against sqlx’s _sqlx_migrations table.
Wave 3 extends the > branch to read the per-migration
backward_compatible annotation and refuse-to-start on a
destructive-ahead ledger.