Skip to main content

run_migrations

Function run_migrations 

Source
pub async fn run_migrations(
    pool: &AnyPool,
    kind: DbKind,
) -> Result<(), KipukaError>
Expand description

Run all pending migrations.

The kind parameter selects the dialect-specific DDL so that the correct data types, defaults, and syntax are used for each backend.