pub fn run_db_migration(
conn: &mut Connection,
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
Expand description
Runs all pending database migrations.
Will return an error if the database connection is invalid, or if any of the migrations fail. Otherwise, it returns Ok()
ยงErrors
- If the database connection is invalid
- If checking for pending database migrations fails
- If any of the database migrations fail