Skip to main content

migrate_url

Function migrate_url 

Source
pub async fn migrate_url(url: &str) -> Result<(), DBError>
Expand description

Runs the full migration set against the database at url. Used by provisioning to bring a freshly-created per-user database up to the (DDL-only) schema.

ยงErrors

DBError::Sqlx on connect failure, DBError::Migration if a migration fails.