Skip to main content

assert_runtime_schema_v4_compatible

Function assert_runtime_schema_v4_compatible 

Source
pub async fn assert_runtime_schema_v4_compatible(
    pool: &PgPool,
) -> Result<(), SchemaConformanceError>
Expand description

Asserts that a host database is compatible with the canonical schema-v4 contract before the host accepts billing work.

Call this after the host has applied its immutable Syrup Rail install or forward-only upgrade migration through its normal migration deployment. This function is read-only and requires PostgreSQL major version 18.