The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hyperlane-monorepo/rust/agents/scraper/migration/bin/recreate_db.rs

15 lines
262 B

//! Tare down an existing database and then re-initialize it.
use common::*;
mod common;
#[tokio::main]
async fn main() -> Result<(), DbErr> {
let db = init().await?;
Migrator::down(&db, None).await?;
Migrator::up(&db, None).await?;
Ok(())
}