Skip to main content

apply_migrations

Function apply_migrations 

Source
pub async fn apply_migrations(pool: &PgPool) -> Result<(), MigrationError>
Expand description

Apply all pending migrations bundled in this crate’s migrations/ directory.

Out-of-band only. Wave 0 ships a placeholder 0001_*.sql (just SELECT 1;) so the machinery is exercised; wave 3 replaces it with the real schema. Callers: tests + a future ff-migrate CLI. Must NOT be called from PostgresBackend::connect.