Skip to main content

run_migrations

Function run_migrations 

Source
pub async fn run_migrations(pool: &DbPool, dir: &str) -> Result<(), DbError>
Available on crate features model-mysql or model-postgres or model-sqlite only.
Expand description

Run pending migrations from SQL files in dir. Called by DbPool::migrate.