Skip to main content

migrate

Function migrate 

Source
pub fn migrate(conn: &Connection) -> Result<()>
Expand description

Run database migrations up to the latest schema version.

This function is idempotent — calling it multiple times on the same database has no additional effect once the schema is current.

§Errors

Returns an error if any migration statement fails to execute.