Skip to main content

rs_auth_postgres/
migrate.rs

1use sqlx::PgPool;
2
3/// Run all pending database migrations.
4pub async fn run_migrations(pool: &PgPool) -> Result<(), sqlx::migrate::MigrateError> {
5    sqlx::migrate!("./migrations").run(pool).await
6}