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/main/agents/scraper/migration/bin/down.rs

23 lines
390 B

//! Downgrade database.
use std::env;
use common::*;
mod common;
#[tokio::main]
async fn main() -> Result<(), DbErr> {
let args: Vec<String> = env::args().collect();
let steps = args
.get(1)
.expect("steps are required")
.parse()
.expect("steps to be u32");
let db = init().await?;
Migrator::down(&db, Some(steps)).await?;
Ok(())
}