pub fn run_migrations(conn: &Connection) -> Result<()>Expand description
Run all pending migrations on the database.
Migrations are applied in order. Already-applied migrations (tracked in
the schema_migrations table) are skipped. This is idempotent and safe
to call on every database open.
ยงErrors
Returns an error if a migration fails to apply. Note that ALTER TABLE errors for duplicate columns are handled gracefully (logged as warnings) since the schema may already have those columns from the base DDL.