Skip to main content

ensure_schema_compatible

Function ensure_schema_compatible 

Source
pub async fn ensure_schema_compatible(
    pool: &DbPool,
) -> Result<(), SchemaCompatibilityError>
👎Deprecated since 0.1.2:

use ensure_schema_compatible_after_idempotency_cutover to make the enqueue request snapshot cutover explicit

Expand description

Validate that the target database’s SQLx migration history matches the bundled Runledger migrations.

Deprecated compatibility alias for ensure_schema_compatible_after_idempotency_cutover. The current schema compatibility check rejects keyed legacy rows without enqueue request snapshots, matching the stricter cutover API.