Skip to main content

run_user_migrations

Function run_user_migrations 

Source
pub async fn run_user_migrations(pool: &SqlitePool, dir: &Path) -> Result<()>
Expand description

Run user-supplied migrations from the given directory.

If the directory does not exist or contains no .sql files, this function returns Ok(()) silently — it is not an error for a project to have no custom migrations yet.

Migrations are discovered and applied in filename order using the standard sqlx migration conventions.