migrate.rs 16 lignes · 564 octets
//! CLI entry point for running SeaORM migrations against the Rustwarden
//! database.
//!
//! Delegates to [`rustwarden_core::migrations::CoreMigrator`], the same
//! migrator used by the embedded auto-migrator. There is no separate
//! migration list — adding a migration in
//! `rustwarden-core/src/migrations/mod.rs` makes it available to both
//! this binary and `RustwardenApp::auto_migrate(true)`.

use rustwarden_core::migrations::CoreMigrator;
use sea_orm_migration::prelude::*;

#[tokio::main]
async fn main() {
    cli::run_cli(CoreMigrator).await;
}