Skip to main content

migrate

Function migrate 

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

Run every un-applied migration in a single transaction and stamp PRAGMA user_version with the final version.

Returns the number of migrations actually applied (0 when the DB is already up-to-date).