Skip to main content

migrate_after_idempotency_cutover

Function migrate_after_idempotency_cutover 

Source
pub async fn migrate_after_idempotency_cutover(
    pool: &DbPool,
) -> Result<(), SchemaCompatibilityError>
Expand description

Apply the bundled Runledger schema migrations to a PostgreSQL pool, then enforce the idempotency snapshot cutover.

This is intentionally named as a hard-cutover API. Downstream applications upgrading from older Runledger versions must update their startup code and verify no keyed legacy rows remain without enqueue_request snapshots.