keep already started containers, multi threaded async

This commit is contained in:
2026-06-12 12:50:25 +02:00
parent 5125aed0da
commit 6aa0ab473d
4 changed files with 12 additions and 34 deletions

View File

@ -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)?;