pub fn latest(&self, conn: &mut Connection) -> Result<()> {
        let v_max = self.max_schema_version();
        match v_max {
            SchemaVersion::NoneSet => {
                warn!("no migration defined");
                Ok(())
            }
            SchemaVersion::Inside(_) => {
                info!("some migrations defined, try to migrate");
                self.goto(conn, v_max.into())
            }
            SchemaVersion::Outside(_) => unreachable!(),
        }
    }
/// Migrate the database to latest schema version. The migrations are applied atomically.
Migrate the database to latest schema version. The migrations are applied atomically.
Migrate the database to latest schema version . The migrations are applied atomically .
pub fn latest(&self, conn: &mut Connection) -> Result<()> {
        let v_max = self.max_schema_version();
        match v_max {
            SchemaVersion::NoneSet => {
                warn!("no migration defined");
                Ok(())
            }
            SchemaVersion::Inside(_) => {
                info!("some migrations defined, try to migrate");
                self.goto(conn, v_max.into())
            }
            SchemaVersion::Outside(_) => unreachable!(),
        }
    }
pub fn latest ( & self , conn : & mut Connection ) -> Result < ( ) > { let v_max = self . max_schema_version ( ) ; match v_max { SchemaVersion :: NoneSet => { warn ! ( " " ) ; Ok ( ( ) ) } SchemaVersion :: Inside ( _ ) => { info ! ( " " ) ; self . goto ( conn , v_max . into ( ) ) } SchemaVersion :: Outside ( _ ) => unreachable ! ( ) , } }
Migrate the database to latest schema version.
Migrate the database to latest schema version .
&self
conn
&mut Connection
&self
conn
&mut Connection