keep already started containers, multi threaded async
This commit is contained in:
@ -8,10 +8,6 @@ pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("./migrations");
|
||||
|
||||
pub fn run_migrations(pool: &DbPool) -> Result<(), Box<dyn Error + Send + Sync + 'static>> {
|
||||
|
||||
// This will run the necessary migrations.
|
||||
//
|
||||
// See the documentation for `MigrationHarness` for
|
||||
// all available methods.
|
||||
let connection = &mut pool.get().unwrap();
|
||||
connection.run_pending_migrations(MIGRATIONS)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user