Skip to main content

migrate_sqlite

Function migrate_sqlite 

Source
pub async fn migrate_sqlite(pool: &SqlitePool) -> Result<()>
Expand description

SQLite migration runner.

Caller must have ATTACHed the auth database as auth before calling. Applies every DDL pack up to and including MIGRATION_VERSION (V1 then V2 today). Each DDL chunk is executed as its own statement; the per-table failure context names the table that broke so engine boot logs are actionable.