Skip to main content

migrate

Function migrate 

Source
pub async fn migrate(
    pool: &PgPool,
    context: &Context,
) -> Result<(), OperationOutcomeError>
Expand description

Applies the repository’s migrations that the database of pool lacks, their steps given context.

§Errors

Returns an error if a migration or its step fails (see crate::run).