|
|
@ -148,7 +148,7 @@ impl Builder {
|
|
|
|
if let Some(migration_map) = self.migrations.as_mut(){
|
|
|
|
if let Some(migration_map) = self.migrations.as_mut(){
|
|
|
|
if let Some(migrations)= migration_map.remove(&db){
|
|
|
|
if let Some(migrations)= migration_map.remove(&db){
|
|
|
|
let migrator = Migrator::new(migrations).await?;
|
|
|
|
let migrator = Migrator::new(migrations).await?;
|
|
|
|
pool.migrate(&migrator).await?;
|
|
|
|
pool.migrate(&migrator).await?;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
else{
|
|
|
|