pub async fn migrate_all(&mut self) -> Result<MigrationSummary, Error> {
        self.check_migrations().await?;

        if self.migrations.is_empty() {
            return Ok(MigrationSummary {
                new_version: None,
                old_version: None,
            });
        }

        self.migrate(self.migrations.len() as _).await
    }
/// Apply all local migrations, if there are any.
///
/// # Errors
///
/// Uses [`Migrator::migrate`] internally, errors are propagated.
Apply all local migrations, if there are any.
Apply all local migrations if there are any .
pub async fn migrate_all(&mut self) -> Result<MigrationSummary, Error> {
        self.check_migrations().await?;
        if self.migrations.is_empty() {
            return Ok(MigrationSummary {
                new_version: None,
                old_version: None,
            });
        }
        self.migrate(self.migrations.len() as _).await
    }
pub async fn migrate_all ( & mut self ) -> Result < MigrationSummary , Error > { self . check_migrations ( ) . await ? ; if self . migrations . is_empty ( ) { return Ok ( MigrationSummary { new_version : None , old_version : None , } ) ; } self . migrate ( self . migrations . len ( ) as _ ) . await }
Apply all local migrations, if there are any.
Apply all local migrations if there are any .
&mut self
&mut self
errors
Uses [`Migrator::migrate`] internally, errors are propagated.
Uses [ ` Migrator :: migrate ` ] internally errors are propagated .